Sending data to Open.Sen.se
This is a demo data feed from a 4.2 Spider to Open.Sen.se.
It simply sends a random number between 0 and 100 every 20 seconds over Wifi, using JSON format.
The RS21 Wifi code and NTP server calling code is from a post by Duke Nukem http://www.ghielectronics.com/community/forum/topic?id=9411&page=3.
The JSON classes are from Huysentruit Wouter - http://www.ghielectronics.com/community/codeshare/entry/282
The DataFeed class encapsulates most of the mechanics of posting to Open.Sen.se.
In the main program, you’ll need to provide your own Open.Sen.se API key, and the numeric ID of your own feed.
The main program kicks off when a button click occurs, connects to the WiFi network, gets the current time, and starts the timer, which every 20 seconds posts the random value.
Exception handling is left as an exercise for the reader