Best way to get status and set vars via serial connection

Do you have a question on how to do something.
Ask in here.
Post Reply
scurvyrat
Posts: 11
Joined: Wed Sep 25, 2013 8:35 am
Contact:

Best way to get status and set vars via serial connection

Post by scurvyrat »

I finally am getting sometime to play around with a spark core. As a first step, just want to connect it serial-serial with my RA+ and get the data off.

Is the easiest way to do that include the RA_Wifi.h and then send over serial the wifi commands (like /sr)?

I tried to do that interactively in the Arduino IDE but didn't get a response from the RA+.

I'm running the lastest 1.1 RA code.

Thanks!
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Best way to get status and set vars via serial connectio

Post by rimai »

I just bought 2 spark cores yesterday :)
If you are using the Arduino IDE, you must open Serial Monitor in 57600 baud and send this command:

Code: Select all

GET /sr HTTP
Technically the HTTP is not needed, but I couldn't show the space in the above example. All you really need is a space after sr. Anything after the space is discarded by the controller.
The same thing would be if you are connecting with the core, you must send the same sequence through the serial port and don't forget the space after any command.
Roberto.
scurvyrat
Posts: 11
Joined: Wed Sep 25, 2013 8:35 am
Contact:

Re: Best way to get status and set vars via serial connectio

Post by scurvyrat »

thanks Roberta. Works like a charm. Curious what you think of the spark cores.
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Best way to get status and set vars via serial connectio

Post by rimai »

I have not got them yet. Just bought them yesterday and they have not been shipped yet.
Roberto.
scurvyrat
Posts: 11
Joined: Wed Sep 25, 2013 8:35 am
Contact:

Re: Best way to get status and set vars via serial connectio

Post by scurvyrat »

Sorry about the typo on your name!
rimai
Posts: 12881
Joined: Fri Mar 18, 2011 6:47 pm

Re: Best way to get status and set vars via serial connectio

Post by rimai »

:)
Roberto.
Post Reply