Device
Properties
| address(string) - read only |
|---|
| The address property gets the address of a device |
| Examples |
| let devices = env.facility.devices; let mydevices = devices.toArray() mydevices.forEach((device)=> { env.log(device.address) }); |
|
| description (string) - read only |
|---|
| The description property gets the description of a device |
| Examples |
| let devices = env.facility.devices; let mydevices = devices.toArray() mydevices.forEach((device)=> { env.log(device.description) }); |
| endpoints - read only |
|---|
| The endpoints property gets an endpoints object, for more information see endpoints |
| Examples |
| let devices = env.facility.devices; let mydevices = devices.toArray() mydevices.forEach((device)=> { let endpoints = device.endpoints env.log(device.endpoints) }); |
| isOnline (boolean)- read only |
|---|
| The isOnline property allows knowing whether the device is online or offline. Note: This property is available starting from platform version 1.5. |
| Examples |
| let devices = env.facility.devices; let mydevices = devices.toArray() mydevices.forEach((dev)=> { let online= dev.isOnline; env.log(dev.online) }); |
For more information see this page