Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "_id" : ObjectId("59c9e021af4886c9149a28c7"),
- "userkey" : "r1Et2ZNdW",
- "devicekey" : "12345",
- "analog" : {
- "4" : 458,
- "6" : 448,
- "7" : 100
- },
- "__v" : 0
- }
- DeviceModel.update({_id : device.id}, {$set : {"analog" : analog}}, function(err, doc){
- if(err) throw err;
- console.log("Device switches updated");
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement