File: device.coffee
Defined in: | lib/resin/models |
Method Summary
-
~
(void)
getAll(callback)
Get all devices
resin.models.devices.getAll (error, devices) -> throw error if error? console.log(devices)
-
~
(void)
getAllByApplication(applicationId, callback)
Get all devices by application
resin.models.devices.getAllByApplication (error, devices) -> throw error if error? console.log(devices)
-
~
(void)
get(deviceId, callback)
Get a single device
resin.models.device.get 51, (error, device) -> throw error if error? console.log(device)
-
~
(void)
remove(id, callback)
Remove device
resin.models.device.remove 51, (error) -> throw error if error?
-
~
(void)
identify(uuid, callback)
Identify device
resin.models.device.identify '23c73a12e3527df55c60b9ce647640c1b7da1b32d71e6a21369ac0f00db828', (error) -> throw error if error?
Method Details
~
(void)
getAll(callback)
Get all devices
resin.models.devices.getAll (error, devices) -> throw error if error? console.log(devices)
~
(void)
getAllByApplication(applicationId, callback)
Get all devices by application
resin.models.devices.getAllByApplication (error, devices) -> throw error if error? console.log(devices)
~
(void)
get(deviceId, callback)
Get a single device
resin.models.device.get 51, (error, device) -> throw error if error? console.log(device)
~
(void)
remove(id, callback)
Remove device
resin.models.device.remove 51, (error) -> throw error if error?
~
(void)
identify(uuid, callback)
Identify device
resin.models.device.identify '23c73a12e3527df55c60b9ce647640c1b7da1b32d71e6a21369ac0f00db828', (error) -> throw error if error?