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!
Best way to get status and set vars via serial connection
Re: Best way to get status and set vars via serial connectio
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:
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.
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
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.
Re: Best way to get status and set vars via serial connectio
thanks Roberta. Works like a charm. Curious what you think of the spark cores.
Re: Best way to get status and set vars via serial connectio
I have not got them yet. Just bought them yesterday and they have not been shipped yet.
Roberto.
Re: Best way to get status and set vars via serial connectio
Sorry about the typo on your name!