Closed hacralo closed 4 years ago
You won't be able to use a Standard IoT Agent for that, you will need to create your own custom IoT Agent.
The definition of the MQTT Topics to subscribe to can be found within MQTTBinding.js
The reading of incoming messages can be found in commonBindings.js
To alter the path you will need to follow the instructions found in 205 - Custom IoT Agent
MQTTBinding.js
and commonBindings.js
to listen to your preferred locationCOPY
instructionObviously same applies if using the JSON IoT Agent.
that was helpful, thanks Jason!
I have a message broker deployed in my home which listens to multiple sensors at topic /xxxx/xxxx/xxxx/xxxx/xxxx/xxxx/xxxx. I am trying to connect the broker to iot-agent, but from fiware guide I can see the topic should be of format api-key/device-id/attrs. Is it possible to modify this topic structure to use my original seven level topic? I am new to this whole fiware setup, any help would be appreciated, thanks!