|  Developer
Updated on November 22, 2021

get_devices()

  • Get all devices registered within the hub.
Edit
  • params: none.
  • return: an array of devices (table) or nil in a case of an error.
Edit
				
					require "core"

local devices = core.get_devices()
if devices then
    for _, dev in ipairs( devices ) do
        print( "device name:" .. dev.name )
    end
end