Include xsi:type attribute with SetParameterValues method

This commit is contained in:
Zaid Abdulla committed 2013-04-03 09:15:46 +03:00
1 parent 5934178d91
commit 3f45c7e887
4 files changed
+32 -9

No files matched your search

+5 -1
View File
@@ -67,6 +67,10 @@ updateDevice = (currentRequest, actions, callback) ->
updates["#{path}_orig"] = origValue
updates["#{path}_value"] = v
updates["#{path}_timestamp"] = now
if p[2]?
updates["#{path}_type"] = p[2]
else
deletes["#{path}_type"] = 1
if actions.parameterNames?
for p in actions.parameterNames
@@ -144,7 +148,7 @@ isTaskExpired = (task) ->
nextTask = (currentRequest) ->
cur = db.tasksCollection.find({'device' : currentRequest.deviceId}).sort(['timestamp']).limit(1)
cur.nextObject( (err, task) ->
cur.nextObject((err, task) ->
cwmpResponse = {}
if not task