require "cloud_devices"

local device = cloud_devices.get_node( device_id )
if device then do
    print( "device.reachable: " .. device.reachable )
end