Best way to get status and set vars via serial connection

Do you have a question on how to do something.
Ask in here.

Posts: 11
Joined: Wed Sep 25, 2013 8:35 am
PostPosted: Thu Aug 14, 2014 2:29 pm
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!

Posts: 12327
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Thu Aug 14, 2014 3:43 pm
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.

Posts: 11
Joined: Wed Sep 25, 2013 8:35 am
PostPosted: Thu Aug 14, 2014 8:32 pm
thanks Roberta. Works like a charm. Curious what you think of the spark cores.

Posts: 12327
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Thu Aug 14, 2014 8:51 pm
I have not got them yet. Just bought them yesterday and they have not been shipped yet.
Roberto.

Posts: 11
Joined: Wed Sep 25, 2013 8:35 am
PostPosted: Fri Aug 15, 2014 10:00 am
Sorry about the typo on your name!

Posts: 12327
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Fri Aug 15, 2014 10:12 am
:)
Roberto.

Return to How do I code ...

Who is online

Users browsing this forum: No registered users and 7 guests