Pages: 1 [2]   Go Down
Author Topic: send and receive HEX over TTL  (Read 291 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I will post the code shortly, although it is really getting big. Hopefully this will help to understand what I want.

Thanks for your patience. 
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 52
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I attached the sketch for better reading.

It is basically the bridge example for the Arduino Yun with some modification to respond to commands like:
http://IP/command/1/1

The reply for the commands except for status will be the same as the sent command to check if received correctly. Status as well as other information will give a specific code to say what it is doing. This will be returned over http (switch case) but is not yet implemented. Actually I plan to do it the same way as I give out the temperature, except it will be a String.

For the receiving part I need some ideas. Because I want to use the result of a reply right after sending in the same function I thought it makes sense to wait 10 seconds before reading instead of reading in the loop.

I'm open for any suggestions as well as for corrections.
Thanks

* Automower.ino (6.72 KB - downloaded 2 times.)
Logged

Pages: 1 [2]   Go Up
Jump to: