Created
June 22, 2012 21:51
-
-
Save dholstius/2975419 to your computer and use it in GitHub Desktop.
Configure WiFly RN-XV as a serial-to-http bridge
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Join the wireless network | |
set wlan ssid WIFI_NETWORK | |
set wlan phrase WIFI_PASSWORD | |
set wlan join 1 | |
join | |
// Set the real-time clock | |
set time | |
show time | |
set time enable 1 | |
set ip flags 0x87 | |
// Set timeout for UART input | |
set comm time 1000 | |
// Send RTC, MAC, ID and other goodies too | |
set option format 0x19 | |
// Transmit on UART input | |
set ip proto 18 | |
set ip host 0 | |
set ip address 0 | |
set ip remote 80 | |
set dns name your.webserver.com | |
set comm remote GET$/your_script.php?DATA= | |
set uart mode 2 | |
save | |
reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment