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