1
-
2
-
3
1
class Cayenne {
4
2
/**
5
3
* @param {String } url
@@ -161,11 +159,11 @@ class Cayenne {
161
159
*/
162
160
updateGroup ( deviceId , groupId , payload ) {
163
161
const url = `${ this . url } /things/${ deviceId } /groups/${ groupId } ` ;
164
-
162
+
165
163
return this . auth . send ( this . service , 'PUT' , url , { payload } ) ;
166
164
}
167
165
168
- /**
166
+ /**
169
167
* Create an attribute group. Pass null to group_id to create a new group.
170
168
* @param {String } deviceId The id of the parent device
171
169
* @param {Object } payload The group to create
@@ -226,8 +224,8 @@ class Cayenne {
226
224
*/
227
225
updateAttribute ( deviceId , groupId , attributeId , payload ) {
228
226
const url = `${
229
- this . url
230
- } /things/${ deviceId } /groups/${ groupId } /attributes/${ attributeId } `;
227
+ this . url
228
+ } /things/${ deviceId } /groups/${ groupId } /attributes/${ attributeId } `;
231
229
232
230
return this . auth . send ( this . service , 'PUT' , url , { payload } ) ;
233
231
}
@@ -245,7 +243,7 @@ class Cayenne {
245
243
return this . auth . send ( this . service , 'DELETE' , url ) ;
246
244
}
247
245
248
- /**
246
+ /**
249
247
* Get an attribute
250
248
* @param {String } deviceId
251
249
* @param {String } groupId
@@ -262,7 +260,6 @@ class Cayenne {
262
260
* End Device Attribute Routes
263
261
*/
264
262
265
-
266
263
/*
267
264
* Begin Registry Routes
268
265
*/
@@ -343,17 +340,17 @@ class Cayenne {
343
340
344
341
/**
345
342
* Gets V2 all things data types
346
- * @param {Object } query
347
- * @param {Number } [query.limit]
348
- * @param {Number } [query.page]
343
+ * @param {Object } query
344
+ * @param {Number } [query.limit]
345
+ * @param {Number } [query.page]
349
346
*/
350
347
getThingDataTypesV2 ( query ) {
351
348
const url = `${ this . url } /v2/things/datatypes` ;
352
349
return this . auth . send ( this . service , 'GET' , url , { query } ) ;
353
350
}
354
351
355
352
/**
356
- * Get V2 one things data type
353
+ * Get V2 one things data type
357
354
*/
358
355
getThingDataTypeV2 ( id ) {
359
356
const url = `${ this . url } /v2/things/datatypes/${ id } ` ;
@@ -362,9 +359,9 @@ class Cayenne {
362
359
363
360
/**
364
361
* Get V2 one things data type properties
365
- * @param {Object } query
366
- * @param {Number } [query.limit]
367
- * @param {Number } [query.page]
362
+ * @param {Object } query
363
+ * @param {Number } [query.limit]
364
+ * @param {Number } [query.page]
368
365
*/
369
366
getThingDataTypePropertiesV2 ( id , query ) {
370
367
const url = `${ this . url } /v2/things/datatypes/${ id } /properties` ;
0 commit comments