Atos-Research-and-Innovation / IoTagent-LoRaWAN

FIWARE IoT Agent for LoRaWAN protocol (with CayenneLpp and CBOR data models)
https://fiware-lorawan.readthedocs.io/en/latest/
Other
34 stars 40 forks source link

Restart LoRaServer breaks the flow #65

Closed filgiuff closed 5 years ago

filgiuff commented 5 years ago

I've installed the IoTagent-LoRaWAN and the LoRaServer.io using Docker.

Following this guide I was able to send measures to the MQTT broker and update the context on Orion CB.

But if I restart the LoRaServer.io and try send measures using the previous devices again, the context on Orion CB isn't updated.

If I create a new device, the flow works fine.

Is it due to the IoTagent-LoRaWAN or to the LoRaServer.io ?

How should I proceed when it is necessary to restart the LoRaServer for maintenance?

dcalvoalonso commented 5 years ago

I think that https://github.com/Atos-Research-and-Innovation/IoTagent-LoRaWAN/pull/67 fixes this problem. Could you please check if it works now?

filgiuff commented 5 years ago

I've pulled new image through docker, I've tried to send a measure with an old device (e.g. Device1) and the Orion entity has not been updated. I've published a new device (e.g. Device2), sent a measure and in this case the Orion entities has been updated.

I've restarted LoRaServer and also in this case the Orion entity has been updated only for Device2 and not for Device1.

I came to the conclusion that the devices created before the bug fix must be deleted and re-created. In this case them work fine again.