Skip to content

Commit 83baf21

Browse files
committed
Add documentation for endDeviceInfo type
1 parent ab3e945 commit 83baf21

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

README.md

+15-2
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,22 @@ Wemo Insight Switch sent new power consumption data.
119119

120120
#### getEndDevices(cb)
121121

122-
Get bulbs connected to a Wemo Bridge. An array of `endDevices` is passed to the callback.
122+
Get bulbs connected to a Wemo Bridge. An `endDeviceInfo` for every device paired is passed to the callback in an array, e.g.:
123+
```javascript
124+
[{
125+
friendlyName: 'Color Bulb',
126+
deviceId: 'EA103EA2B2782FFF'
127+
capabilities: {
128+
'10006': '1'
129+
'10008': '121:0'
130+
},
131+
deviceType: 'dimmableLight'
132+
}]
133+
```
134+
135+
Device groups are treated as if they were single devices – a sole `endDeviceInfo` is returned per group.
123136

124-
* **Callback** *cb* cb(err, endDevices)
137+
* **Callback** *cb* cb(err, endDeviceInfos)
125138

126139
#### getBinaryState(cb)
127140

0 commit comments

Comments
 (0)