Facebook
From Wet Duck, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 127
  1.     await dbUtils.insertDocument({
  2.       collection: 'zigbeeDevice',
  3.       document: {
  4.         '_id' : entityIdSensor,
  5.         'macAddress' : '000000000000FF',
  6.         'displayName' : 'Fake sensor',
  7.         'description' : 'None',
  8.         'isBlocked' : false,
  9.         'type' : 'K',
  10.         'productId' : 513,
  11.         'serialNumber' : 'FFFF-FFFF-FFFF-FFFF',
  12.         'customerId' : hubSettings.customerId,
  13.         '_version' : 1551364757280.0,
  14.         'miscomAlertFactor' : 2,
  15.         'reportingPeriod' : 900000
  16.       }
  17.     });