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

Make devices persistent after docker restart #100

Open jfernandz opened 4 years ago

jfernandz commented 4 years ago

Well, I've been researching a little and after a few tests, I've noticed IoTagent-LoRaWAN does not store the created devices after a restart; I in fact have not associated any volume to the docker container but I didn't see in docs any clue about this can be done. I guess IoTagent is using some kind of embebed database as sqlite.

I think it would be fine if the Agent also connect and store this kind of info into MongoDB because is particularly bothering that when I restart my docker containers the entities and subscriptions persist in MongoDB but don't persist the devices. This is a problem because it cuts the context data flow every restart and I have to create again the device with the credentials.

What do you think? Thank you anyway :blush:

jfernandz commented 4 years ago

Sorry, I've not noticed the IOTA_REGISTRY_TYPE=mongodb in the Docker readme

I think you should Include this info in the official docs because I'd say I've not seen that info over there.

I'm keeping this issue open until this be added to the readthedocs page (if you want, of course :blush:)

Cheers!