lightweightm2m-iotagent
lightweightm2m-iotagent copied to clipboard
Error in config.js
I've installed the LWM2M IoT Agent in the CentOS VM provided for the Context Broker. I obtain the following error after executing "bin/lwm2mAgent.js":
msg=No host found for MongoDB driver.
I checked the configuration in config.js file and I removed these lines
deviceRegistry: { type: 'mongodb', host: 'localhost' },
and I replaced them with the following:
deviceRegistry: { type: 'mongodb', }, mongodb: { host: 'localhost', port: '27017', db: 'iotlwm2m' },
With these changes I could run the instance of the Agent. The problem is that the configuration in this file wasn't updated. I got these lines from the file config.js of the UL2.0 Agent.
Fixed by PR #101. @serloop , as original reporter, could you check (using the code now in the master branch) if the problem is solved, please? Thx!