Skip to content

Instantly share code, notes, and snippets.

@woakas
Last active March 7, 2016 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woakas/7e6f5cf1421aa16df749 to your computer and use it in GitHub Desktop.
Save woakas/7e6f5cf1421aa16df749 to your computer and use it in GitHub Desktop.
Send data with the RN131

Send data to Ubidots using RN131

Communicate with the RN131 module through the serial port. Plug your device to your computer and open a serial terminal.

The speed must be 9,600 bauds, then enter the following commands in the serial terminal. You should type the string “$$$” before each set of commands to enter the command mode:

Command set #1:

$$$
factory RESET
reboot

Command set #2:

  • Replace WIFISSID for you SSID
  • Replace WIFIPASSWORD for the password of you Network. Note: if your network has spaces something like "Wifi Net" you must replace the spaces with the character "$" ex: Wifi Net => Wifi$Net
$$$
set wlan ssid WIFISSID
set wlan pass WIFIPASSWORD
set wlan join 1
save
reboot

Command set #3:

$$$
set ip proto 18
set ip host 0
set ip remote 80
set dns name translate.ubidots.com
set com remote POST$/microchip/rn131/?tk=TOKEN&value=
set option deviceid DATASOURCE_ID
set q sensor 0xFF
set option format 0xF
set sys auto 3
save
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment