|  Developer
Updated on November 22, 2021

get_device()

  • Get device registered within the hub by specified id.
Edit
  • device id (string).
  • return: device (table) or nil in a case of an error
Edit
				
					require "core"

local device = core.get_device( "device_id" )
if device then
    print( "device name:" .. device.name )
end