I keep trying to simplify this question to a point that will get me a response... so here's another try.
I need to SLIP encode a 2-4 byte message on the Teensy and send it to an esp8266, where I need to decode it so I can turn it into an OSC message. the OSC encoding/sending I've got figured out, it's the SLIP (particularly the ESC, ESC_ESC, ESC_END stuff) that confuses me.
The data will coming from various sensors on the teensy end, each of which will be given a sensor number and up to 3 data bytes (e.g. an accelerometer plus xyz) Could someone show me the Arduino code required to SLIP-encode 4 numbers (let's say 1,500,200,100) into a single packet, followed by the code required decode them on the receiving end so I'll have access to the individual numbers.
Alternatively, is there a way to encode the data into an OSC message from the get-go and transmit that to the ESP8266?
Sorry to be such a dufus... I'm a long time Max/MSP programmer who's just starting out with Arduino code and I'm struggling to learn the syntax.
I need to SLIP encode a 2-4 byte message on the Teensy and send it to an esp8266, where I need to decode it so I can turn it into an OSC message. the OSC encoding/sending I've got figured out, it's the SLIP (particularly the ESC, ESC_ESC, ESC_END stuff) that confuses me.
The data will coming from various sensors on the teensy end, each of which will be given a sensor number and up to 3 data bytes (e.g. an accelerometer plus xyz) Could someone show me the Arduino code required to SLIP-encode 4 numbers (let's say 1,500,200,100) into a single packet, followed by the code required decode them on the receiving end so I'll have access to the individual numbers.
Alternatively, is there a way to encode the data into an OSC message from the get-go and transmit that to the ESP8266?
Sorry to be such a dufus... I'm a long time Max/MSP programmer who's just starting out with Arduino code and I'm struggling to learn the syntax.