Add list all devices function
Call list all devices function
Changes the debug print
Add a lua example to call list all devices function