Fix Device.ID param missing on first contact

This commit is contained in:
Zaid Abdulla committed 2017-05-31 23:08:35 -07:00
1 parent 8f5effe84c
commit b1ed1f4f2f
1 file changed
+3
+3
View File
@@ -150,6 +150,9 @@ inform = (sessionContext, rpcReq, callback) ->
return callback(err) if err return callback(err) if err
if sessionContext.new if sessionContext.new
params.push([['DeviceID', 'ID'], timestamp,
{object: [timestamp, 0], writable: [timestamp, 0], value: [timestamp, [sessionContext.deviceId, 'xsd:string']]}])
params.push([['Events', 'Registered'], timestamp, params.push([['Events', 'Registered'], timestamp,
{object: [timestamp, 0], writable: [timestamp, 0], value: [timestamp, [timestamp, 'xsd:dateTime']]}]) {object: [timestamp, 0], writable: [timestamp, 0], value: [timestamp, [timestamp, 'xsd:dateTime']]}])