IoT Agent (LWM2M)
Official documentation of this IoT Agent: here
Requirements
Please make sure you read the welcome page and followed the steps explained in the installation guide.
HTTP Transport
What you can customise
Via ENV variables
-
IOTA_VERSION:
Version number (tag) of the Agent Docker Image. Defaults tolatest
. -
IOTA_LWM2M_PORT
: Defaults to5684
. -
IOTA_LOG_LEVEL
: Defaults toDEBUG
. -
IOTA_CB_HOST
: Defaults toorion
. -
IOTA_CB_PORT
: Defaults to1026
. -
IOTA_NORTH_PORT
: Defaults to4041
. -
IOTA_REGISTRY_TYPE
: Defaults tomongodb
. -
IOTA_MONGO_HOST
: Defaults tomongo
. -
IOTA_MONGO_PORT
: Defaults to27017
. -
IOTA_MONGO_DB
: Defaults toiotagentjson
. -
IOTA_MONGO_REPLICASET
: Defaults tors
. Unset to disable replicaset option. -
IOTA_PROVIDER_URL
: Defaults tohttp://iotagent:4041
.
For the documentation of the variables please refer to the global configuration docs.
Via Files
config.js
: Feel free to edit this file before deployment, it will be used by the agent as its config file. It is treated by docker as a config.
Deploying this recipe
We assume you have already setup your environment as explained in the Installation.
docker stack deploy -c docker-compose.yml iota-lwm2m
The deployed services will be:
Note
If you are following the official step-by-step guide, you can quickly launch the lwm2m client as:
docker exec -ti [AGENT_CONTAINER_ID_HERE] node_modules/lwm2m-node-lib/bin/iotagent-lwm2m-client.js