From b1ed1f4f2fdefff74480031cb14c16d5baec89bd Mon Sep 17 00:00:00 2001 From: Zaid Abdulla Date: Wed, 31 May 2017 23:08:35 -0700 Subject: [PATCH] Fix Device.ID param missing on first contact --- lib/session.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/session.coffee b/lib/session.coffee index 5989a07..0d5ef79 100644 --- a/lib/session.coffee +++ b/lib/session.coffee @@ -150,6 +150,9 @@ inform = (sessionContext, rpcReq, callback) -> return callback(err) if err 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, {object: [timestamp, 0], writable: [timestamp, 0], value: [timestamp, [timestamp, 'xsd:dateTime']]}])