I am happy to announce that the aREST Arduino library is now supporting cloud and local connectivity at the same time! Indeed, so far you had the choice between two type of aREST sketches. You could first simply connect to your aREST devices via your local WiFi network, and access them via their local IP addresses. Or you could connect your devices to the aREST cloud server, and access them from anywhere in the world.

I now developed a new set of sketches (thanks to Torsten Stauch from AppShed for the help!) for your aREST devices, that allows you to have local & cloud access at the same time. You can now access them via your local network, as well as from the cloud server. In case you are in your local network, you can take advantage of the low-latency of your local network, and once you leave this WiFi network, you can still access your device from the cloud!

The nice thing is that the device will automatically export the IP address of the board as a variable accessible from the cloud server. Therefore, you could easily build applications that automatically switch between local & cloud access, depending of what is available for the device.

For now, those new sketches are available for the ESP8266 boards, as well as for the Arduino MKR1000 board. You will find all the example sketches inside the aREST library. I plan to extend this functionality to more boards in the future, for example to the Raspberry Pi.

I can’t wait to see what you will developed with this new feature, and if you have any questions just let me know!