See what you can do? Once you set the device up, it can wake up every so often, connect to your web site, provide the table's status, then go back to sleep. Set sys wake 60 (wakeup after 1 minute of sleeping ) Set sys sleep 2 (sleep 2 seconds after connection is closed ) Set com idle 5 (disconnect after 5 seconds with no data activity ) Set sys autoconn 1 (automatically connect out after READY ) Set ip remote_port num (set up the IP port of the remote machine ) Set ip host X.X.X.X ( set up the IP address of the remote machine ) Wake timer will start the whole cycle again one minute later. The sleep timer will the kick in and put the module in deep sleep. Once data stops for 5 seconds theĬonnection will be closed. While data is flowing the idle timer will not decrement. While this connection is open the sleep timer will notĭecrement. When the module wakes up or is powered on the autoconn timer will cause the module to attempt aĬonnection to the stored remote IP address and port. Here's an excerpt from page 38 of their reference guide: It can act as a telnet server waiting for a wifi equipped PC to connect to it, or it can act as a client, automatically starting up every so often and attempting to connect to your server and deliver it's information. Sparkfun has a shield for this that i have used myself, it works well.īasically, it will work in two modes that seem relevant to your project. Since you have coding experience and intend to send the data to a web site anyway, I would suggest Roving Networks Wifly module.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |