Skip to content

Commit

Permalink
Update mn.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hsebs authored Oct 4, 2019
1 parent b398dec commit 7cb7686
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mobius/mn.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ function retrieve_CSEBase_mqtt(cseid, csebasename, callback) {
var parser = new xml2js.Parser({explicitArray: false});
parser.parseString(fullBody, function (err, result) {
if (err) {
console.log('[retrieve_CSEBase_http] fail to set csetype to MN-CSE. csetype is IN-CSE');
console.log('[retrieve_CSEBase_mqtt] fail to set csetype to MN-CSE. csetype is IN-CSE');
}
else {
result['m2m:cb'] = (result['m2m:cb'] == null) ? result['cb'] : result['m2m:cb'];
Expand Down Expand Up @@ -538,7 +538,7 @@ function retrieve_CSEBase_mqtt(cseid, csebasename, callback) {
delete jsonObj.csr.ct;
delete jsonObj.csr.lt;
delete jsonObj.csr.st;
delete jsonObj.csr.srv;
delete jsonObj.csr.srt;

jsonObj.csr.cst = '5';
jsonObj.csr.rr = 'true';
Expand All @@ -557,4 +557,4 @@ function retrieve_CSEBase_mqtt(cseid, csebasename, callback) {
// write data to request body
req.write('');
req.end();
}
}

0 comments on commit 7cb7686

Please sign in to comment.