Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By felipe123
#50569 Hello, is there any firmware which is able to make transparent transmission over osc messages or even standart udp? I really looked around, but didn't find a one which fits perfect to this requiriments. Until now, i'm only able to send predetermined osc messages. I need this to send arduino sensors data to max msp,with low latency as possible (at commands provide much latency with their 20ms beetween messages).

Thanks for the help!
User avatar
By mrburnette
#50886 OSC messages sent using the Arduino core are at the mercy of the 50mS maximum "in-sketch" timeslice before Arduino code must yield to the ESP8266 RF firmware. Even when the RF section is turned-off, the loop{} still performs a hidden yield() behind thd scenes as the loop{} is repeated to pat-the-dog.

With the RF section active, igrr recommends delay(0) or yield() when the full loop{} repeat rate is > 50mS to allow the protocol stack for the RF section to have a breath. You may be able to sprinkle (one of) the command in your sketch in such a way that the refreshing takes place immediately before and after your critical code to gain the maximum of the 50mS for that code section.

FYI: yield() and delay(0) both refresh the RF stack and timers, but various post seem to suggest that they are not alias commands; that is their behavior is different.

Ray