exosite-garage / arduino_exosite_library Goto Github PK
View Code? Open in Web Editor NEWArduino library for Exosite IoT Platform
License: BSD 3-Clause "New" or "Revised" License
Arduino library for Exosite IoT Platform
License: BSD 3-Clause "New" or "Revised" License
In the latest version on master, m2.exosite.io fails, when I change it to m2.exosite.com it works. I have been unable to find info from exosite on which is the right one.
For example, if I have a response string that is d13=0, the the requests to Exosite API start having a CIK of 'd13=0'.
Have only seen this when using provisioning to activate as a client model and store the CIK. If I re-enable that device and generate a new CIK, the unit correctly re-activates, gets the new CIK, and runs correctly again.
Serial.begin(112500);
Probably should be Serial.begin(115200);
I have wasted an embarrassingly large number of hours trying to track this down. My Arduino will reset itself (or sometimes just freeze up) when sending a TCP packet using this library. Everything works fine if all I send is UDP packets to Exosite. This problem seems to have crept up in the last 6 months or so. I understand I am probably in a minority here, so I am willing to accept that the problem might lie in my hardware or some forgotten modification to some other library.
Nonetheless, if you want to dig into this with me, I will compile more information to send. Meanwhile, can someone else compile and test some examples with the latest Arduino IDE (I am using 1.6.13 right now; the release notes indicate that the newer versions are mostly just IDE updates). Please help me confirm it isn't something to do with a regression outside of my domain, which no one else has happened to notice yet.
Meanwhile, I'll just have to start using UDP packet only and stop using this library, unfortunately. I'd rather have my products not know whether data is successfully being sent to the server, instead of crashing/resetting randomly.
The code:
if(pinNumber == 0){ //Not a Relay Pin Name
Serial.print(F("Unknown Alias:"));
Serial.println(tempString);
continue;
}
Creates an infinite loop if all pinNumbers = 0 which can be triggered if all Output DS's are flushed / nil.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.