Skip to content

Commit

Permalink
Merge pull request #50 from janantala/develop
Browse files Browse the repository at this point in the history
FIX Client handler after connection update
  • Loading branch information
dmoranj committed May 5, 2015
2 parents c205881 + beb452c commit 3075dac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
- Add Execute operation to the library.
- Add Command-node module for the command-line interpreters.
- Fix MongoDB did not recover information at starting (#38).
- Fix command line break when executing command before starting the server (#47).
- Fix command line break when executing command before starting the server (#47).
- FIX Client handler after connection update (#51)
4 changes: 3 additions & 1 deletion bin/iotagent-lwm2m-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,12 @@ function disconnect(command) {

function updateConnection(command) {
if (globalDeviceInfo) {
lwm2mClient.update(globalDeviceInfo, function(error) {
lwm2mClient.update(globalDeviceInfo, function(error, deviceInfo) {
if (error) {
clUtils.handleError(error);
} else {
globalDeviceInfo = deviceInfo;
setHandlers(deviceInfo);
console.log('\Information updated:\n--------------------------------\n');
clUtils.prompt();
}
Expand Down

0 comments on commit 3075dac

Please sign in to comment.