File: device.coffee
Defined in: | lib/resin/device |
Method Summary
-
~
(String)
getDisplayName(device)
Get display name for a device
For a list of supported devices, see getSupportedDevices()
console.log resin.device.getDisplayName('raspberry-pi')
-
~
(String)
getDeviceSlug(device)
Get device slug
console.log resin.device.getDeviceSlug('Raspberry Pi')
-
~
(Array<String>)
getSupportedDevices()
Get a list of supported devices
devices = resin.device.getSupportedDevices() console.log(devices)
Method Details
~
(String)
getDisplayName(device)
Get display name for a device
For a list of supported devices, see getSupportedDevices()
console.log resin.device.getDisplayName('raspberry-pi') # Raspberry Pi
console.log resin.device.getDisplayName('rpi') # Raspberry Pi
~
(String)
getDeviceSlug(device)
Get device slug
console.log resin.device.getDeviceSlug('Raspberry Pi') # raspberry-pi
~
(Array<String>)
getSupportedDevices()
Get a list of supported devices
devices = resin.device.getSupportedDevices()
console.log(devices)