telefonicaid / iotagent-node-lib

Module to enable IoT Agent developers to build custom agents for their devices that can easily connect to NGSI Context Brokers
https://iotagent-node-lib.rtfd.io/
GNU Affero General Public License v3.0
60 stars 85 forks source link

Problems using bidirectional plugin #817

Open gsanz opened 4 years ago

gsanz commented 4 years ago

Hello I am trying to implement the comunication between an Orion Context Broker and Fiware Iot Agent Mosquitto. Rest notifications sent by Orion Context Broker are the following: url1 = /api/generalDevice/xxx/dispositiveId

and the notifications received by mosquitto server are the following: url2 = /api/xxx/xxx/mpdi/id_Device I have tried to map those urls using mosquitto and bidirectional plugin as it says here https://github.com/telefonicaid/iotagent-node-lib#datamapping

But I do not know how to map using the reverse clause from url1 to url2. Any idea on how to do it. Thanks Gorka

fgalan commented 4 years ago

It seems the reference you have provided (https://github.com/telefonicaid/iotagent-node-lib#datamapping) is not working. The base URL (https://github.com/telefonicaid/iotagent-node-lib) works, but the anchor (#datamapping) doesn't.

Maybe the README.md file has changed and the old section has moved, making the link obsolete. Could you double check and provide the right link, please? That way I can have a look to the documentaiton you are using and get a better idea of your use case.