Code Monkey home page Code Monkey logo

Comments (2)

dmoranj avatar dmoranj commented on June 12, 2024

We could see that as a consecuence of the design. The in-memory store is
designed for quick testing and thus it is not supposed to be used once and
again against a single context broker, unless a careful clean is performed
before shutting the IOTA down. I would suggest, if you are going to reuse
the devices, to activate the MongoDB repository.
El 11 mar. 2016 12:14, "ezequiel-umu" [email protected] escribió:

I have a device which subscribes to configuration value "luminosidad", but
each time I deploy new software, I restart the IoTA MQTT (which is
configured to memory instead of mongodb), I do the device provide again,
and each time I do this I end up with more and more messages in Mosquitto
topic /1234/MQTT/configuration/values:

{"Boton":" ","luminosidad":"40","prueba":"15","dt":"20160311T120928Z"}
{"Boton":" ","luminosidad":"40","prueba":"15","dt":"20160311T120928Z"}
{"Boton":" ","luminosidad":"40","prueba":"15","dt":"20160311T120928Z"}
{"Boton":" ","luminosidad":"40","prueba":"15","dt":"20160311T120928Z"}
{"Boton":" ","luminosidad":"40","prueba":"15","dt":"20160311T120928Z"}
{"Boton":" ","luminosidad":"40","prueba":"15","dt":"20160311T120928Z"}
{"Boton":" ","luminosidad":"40","prueba":"15","dt":"20160311T120928Z"}
{"Boton":" ","luminosidad":"40","prueba":"15","dt":"20160311T120929Z"}
{"Boton":" ","luminosidad":"40","prueba":"15","dt":"20160311T120929Z"}
{"Boton":" ","luminosidad":"40","prueba":"15","dt":"20160311T120929Z"}
{"Boton":" ","luminosidad":"40","prueba":"15","dt":"20160311T120929Z"}
{"Boton":" ","luminosidad":"40","prueba":"15","dt":"20160311T120929Z"}
{"Boton":" ","luminosidad":"40","prueba":"15","dt":"20160311T120929Z"}

This got triggered by a single change in Context Broker. It looks like
each time the IoTA is restarted, it does subscribe to those values again,
but it doesn't clear the subscriptions done before.

It is intended? Is there a quick fix?


Reply to this email directly or view it on GitHub
#101.

from iotagent-json.

ezequiel-umu avatar ezequiel-umu commented on June 12, 2024

Then I suggest to change default configuration to use mongodb as in:

https://github.com/telefonicaid/lightweightm2m-iotagent/blob/master/config.js

which doesn't cause this behaviour.

Thank you.

from iotagent-json.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.