We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In file lwm2m-client.js
function updateRegistration(deviceInformation, callback) { var rs = new Readable(), creationRequest = { host: deviceInformation.currentHost, port: deviceInformation.currentPort, method: 'PUT', pathname: deviceInformation.location, query: 'lt=' + config.client.lifetime + '&lwm2m=' + config.client.version + '&b=U' },
The method "PUT" should be "POST". There is no log while updateConnection use PUT. But the console outputs the right log while use POST
The text was updated successfully, but these errors were encountered:
The lwm2m-server.js recieve POST method, so as the LWM2M Document.
serverInfo.routes = [ ['POST', /^\/rd$/, 'registration'], ['DELETE', /\/rd\/.*/, 'unregistration'], ['POST', /\/rd\/.*/, 'updateRegistration'] ];
Sorry, something went wrong.
No branches or pull requests
In file lwm2m-client.js
function updateRegistration(deviceInformation, callback) {
var rs = new Readable(),
creationRequest = {
host: deviceInformation.currentHost,
port: deviceInformation.currentPort,
method: 'PUT',
pathname: deviceInformation.location,
query: 'lt=' + config.client.lifetime + '&lwm2m=' + config.client.version + '&b=U'
},
The method "PUT" should be "POST". There is no log while updateConnection use PUT. But the console outputs the right log while use POST
The text was updated successfully, but these errors were encountered: