{"_id":"arduino_cloud","_rev":"30-d805dbb9ab21d1f6b0b91cf2e92cb4fe","name":"arduino_cloud","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"arduino_cloud","version":"1.0.1","author":{"name":"lorenzo romagnoli"},"license":"GPL-2.0","_id":"arduino_cloud@1.0.1","maintainers":[{"name":"arduino.cc","email":"app.manager@arduino.cc"}],"dist":{"shasum":"1ed5ba68011082989ed166ba5180fe74843b4bb6","tarball":"https://registry.npmjs.org/arduino_cloud/-/arduino_cloud-1.0.1.tgz","integrity":"sha512-Ji5SZ0Xmbzv4BVc6M1jgiSi0grGrIgQ3QtSj5E1RLsNzWtNguttUt7z5CNxXULX4cdbw0ngLGXpyRSbTBjmJsA==","signatures":[{"sig":"MEYCIQCj75N5Lql9umqDXYFhKMNtsUFbIMFA0NaCI0TJHikkvQIhAJRQmPb0AGBNjigkGb7htTjEXwITXXkpts/s+sNBowLR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"arduinoCloud.js","_from":".","_shasum":"1ed5ba68011082989ed166ba5180fe74843b4bb6","gitHead":"602e52613194a162025681323af2ae5193eaf1c6","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"arduino.cc","email":"app.manager@arduino.cc"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"3.9.5","description":"connect to Arduino Cloud","directories":{},"_nodeVersion":"6.2.2","dependencies":{"mqtt":"^1.12.0"},"_npmOperationalInternal":{"tmp":"tmp/arduino_cloud-1.0.1.tgz_1467983555378_0.3482496824581176","host":"packages-16-east.internal.npmjs.com"}},"1.0.2":{"name":"arduino_cloud","version":"1.0.2","author":{"name":"lorenzo romagnoli"},"license":"GPL-2.0","_id":"arduino_cloud@1.0.2","maintainers":[{"name":"arduino.cc","email":"app.manager@arduino.cc"}],"dist":{"shasum":"477dd7c7688ce370436bd8b297863b0f21c74c6b","tarball":"https://registry.npmjs.org/arduino_cloud/-/arduino_cloud-1.0.2.tgz","integrity":"sha512-2x7f3JoW5uZ7DTAp4j8FNW0oHmpireF9ytStK+rDR05gumLUvrzghYOewUOmZQAsLOMXfK8sAIFpjM3aq4ZWfA==","signatures":[{"sig":"MEQCIFRKctlOtEOqEoNy7VzgvrRCPYsmL3pkJlGaqcE281HkAiBy8dfA/7KEB5LU8UsWOJyddGmA1wpai5CkPWnI8y0ErA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"arduinoCloud.js","_from":".","_shasum":"477dd7c7688ce370436bd8b297863b0f21c74c6b","gitHead":"9e0f6d38f1364d33e4bbcd75126c70864f926989","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"arduino.cc","email":"app.manager@arduino.cc"},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.","_npmVersion":"3.9.5","description":"connect to Arduino Cloud","directories":{},"_nodeVersion":"6.2.2","dependencies":{"mqtt":"^1.12.0"},"_npmOperationalInternal":{"tmp":"tmp/arduino_cloud-1.0.2.tgz_1468221201779_0.12743235169909894","host":"packages-12-west.internal.npmjs.com"}}},"time":{"created":"2016-07-08T12:57:25.078Z","modified":"2026-08-04T10:17:07.914Z","1.0.0":"2016-07-08T12:57:25.078Z","1.0.1":"2016-07-08T13:12:36.704Z","1.0.2":"2016-07-11T07:13:24.106Z"},"author":{"name":"lorenzo romagnoli"},"license":"GPL-2.0","description":"connect to Arduino Cloud","maintainers":[{"email":"c.sarnataro@gmail.com","name":"csarnataro"},{"email":"balsick@gmail.com","name":"balsick"},{"email":"l.doglione@arduino.cc","name":"lukdog"},{"email":"a.emireni@arduino.cc","name":"aemireni"},{"email":"accounts@arduino.cc","name":"arduino-accounts"},{"email":"s.visconti@arduino.cc","name":"svisconti"},{"email":"rengucci.gianmarco@gmail.com","name":"freshgiammi"},{"email":"m.curtolo@arduino.cc","name":"arduinomirko"}],"readme":"# Arduino Cloud library\n\nA nodejs library to connect to Arduino Cloud via mqtt.\n\n\n\n## Simple usage\n\n```\nvar ArduinoCLoud = require(\"../arduinoCloud.js\");\n\nvar name = \"\";\nvar thing_ID = \"\";\nvar thing_PSW = \"\";\nvar username = \"\"\n\nvar mything = new ArduinoCLoud(username, name, thing_ID, thing_PSW);\n\nmything.addProperty(\"<propertyName>\");\n\nmything.writeProperty(\"<propertyName>\", \"<propertyValue>\");\n\nsetInterval( function(){\n  mything.writeProperty(\"<propertyName>\", \"<propertyValue>\")}\n  ,5000);\n\nmything.on(\"propertyChanged\", function(propertyName, propertyValue) {\n    console.log(\"propertyChanged\");\n    console.log(\"propertyName \" + propertyName);\n    console.log(\"propertyValue \" + propertyValue);\n});\n```\n\n# API\n-  ` function ArduinoCloud(username, name, id, psw)`\nCreates a new Arduino Cloud Object and open the connection with the mqtt broker.\n\n-  `addProperty(propertyName);`\nCreate a new property and subscribe to it.\n\n-  `writeProperty(propertyName, propertyValue)`\nWrite a new value of the property\n\n-  `on(\"propertyChanged\", function(propertyName, propertyValue){})`\nThis event is fired every time a property value gets updated.\n\n-  `addExternalProperty(thingName,propertyName)`\nConnects to a property of a different \"thing\" capability and subscribe to it.\n\n-  `writeExternalProperty(thingName,propertyName, propertyValue)`\nWrite a new value to the property of a different thing\n\n-  `on(\"ExternalPropertyChanged\", function(thingName,propertyName, propertyValue){})`\nThis event is fired every time a property value of a different thing we are subscribed to gets updated.\n\n## Submitting a pull request\n\nWe are glad you want to contribute with code: that's the best way to help this software.\n\nYour contribution is adding or modifying existing behaviour, please always refer to an existing issue or open a new one before contributing. We are are trying to use [Test Driven Development](https://en.wikipedia.org/wiki/Test-driven_development) in the near future: please add one or more tests that prove that your contribution is good and is working as expected, it will help us a lot.\n\n\nAlso, for your contribution to be accepted, everyone of your commits must be \"Signed-off\". This is done by commiting using this command: `git commit --signoff`\n\nBy signing off your commits, you agree to the following agreement, also known as [Developer Certificate of Origin](http://developercertificate.org/): it assures everyone that the code you're submitting is yours or that you have rights to submit it.\n\n```\nDeveloper Certificate of Origin\nVersion 1.1\n\nCopyright (C) 2004, 2006 The Linux Foundation and its contributors.\n660 York Street, Suite 102,\nSan Francisco, CA 94110 USA\n\nEveryone is permitted to copy and distribute verbatim copies of this\nlicense document, but changing it is not allowed.\n\n\nDeveloper's Certificate of Origin 1.1\n\nBy making a contribution to this project, I certify that:\n\n(a) The contribution was created in whole or in part by me and I\n    have the right to submit it under the open source license\n    indicated in the file; or\n\n(b) The contribution is based upon previous work that, to the best\n    of my knowledge, is covered under an appropriate open source\n    license and I have the right under that license to submit that\n    work with modifications, whether created in whole or in part\n    by me, under the same open source license (unless I am\n    permitted to submit under a different license), as indicated\n    in the file; or\n\n(c) The contribution was provided directly to me by some other\n    person who certified (a), (b) or (c) and I have not modified\n    it.\n\n(d) I understand and agree that this project and the contribution\n    are public and that a record of the contribution (including all\n    personal information I submit with it, including my sign-off) is\n    maintained indefinitely and may be redistributed consistent with\n    this project or the open source license(s) involved.\n```\n","readmeFilename":"README.md"}