|  Developer
Updated on November 12, 2021

get_root_device_id()

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

local root_device_id = core.get_root_device_id( "child_device_id" )
if root_device_id then
    print( "root device id:" .. root_device_id )
end