New release of sNET library for Arduino

We worked really hard to resolve several issues affecting the sNET library for Arduino. But, first of all, we would like to say thank you to Rob Jann who gave us precious info to address them.

The new 0.2 version is now on our public github account (http://github.com/airqnetworks) and can be easily downloaded using git. We suggest downloading always versions that have reached a stable code point. Every time we are sure that the library is usable at all we release a new tag. The list of tags can be reached at https://github.com/airqnetworks/snet-arduino/tags.

This new release introduces a really important feature: library can now check if the status of relays is effectively changed when requested. Since sNET Protocol is a best effort protocol, it does nothing to ensure that a message is received by a device and version 0.1 of the library does nothing to address this. With this new release we introduced status check, and it can easily used passing an additional parameter to setRELAYx() method of an AIRQ310 or AIRQ300 object. Let’s see an example.

Although we have done the best to reduce the size of the whole library, status check requires additional code that increases the total size of library of at least 500 bytes. If your application doesn’t need this feature, you can comment the macro SNET_ENABLE_CONFIRM in the sNET.h header file:

However, to have a better experience using our control boards we suggest to leave that macro uncommented and use status check feature.

 

Be Sociable, Share!

Posted on by admin in Arduino Leave a comment

Add a Comment