Skip to content

Commit

Permalink
correct for for lacking thingID...
Browse files Browse the repository at this point in the history
  • Loading branch information
mrose17 committed Jul 4, 2014
1 parent 8b0870c commit 062cd7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions steward/api/api-manage-thing.js
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ Thing.prototype.observe = function(self, eventID, observe, parameter) {

requestID++;
message = { path: '/api/v1/thing/observe', requestID: requestID.toString(), events: {} };
message.events[id] = { thingID : thingUDNs[self.thingID]
message.events[id] = { thingID : self.thingID
, observe : observe
, parameter : typeof parameter !== 'string' ? stringify(parameter) : parameter
, testOnly : false };
Expand All @@ -607,7 +607,7 @@ Thing.prototype.perform = function(self, taskID, perform, parameter) {

requestID++;
message = { path: '/api/v1/thing/perform', requestID: requestID.toString(), tasks: {} };
message.tasks[id] = { thingID : thingUDNs[self.thingID]
message.tasks[id] = { thingID : self.thingID
, perform : perform
, parameter : typeof parameter !== 'string' ? stringify(parameter) : parameter
, testOnly : false };
Expand Down

0 comments on commit 062cd7a

Please sign in to comment.