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
How can we help?
A premium WordPress theme with integrated Knowledge Base,
providing 24/7 community based support.