Arduino-Serial-SLIP-OSC icon indicating copy to clipboard operation
Arduino-Serial-SLIP-OSC copied to clipboard

send() stops to work after a few iterations

Open 7890 opened this issue 8 years ago • 0 comments

Hi, i'm using this code to send a message every 100 ms. It stops working after around 100 messages. I've tested with different serial monitors:

#include <SlipUsbIn.h>
#include <SlipUsbOut.h>
OSC::SlipUsbIn oscIn(&Serial);
OSC::SlipUsbOut oscOut(&Serial);
OSC::Message answer("/answer");

void setup() {
        Serial.begin(115200); 
        answer.add(String("bar!"));
}

void loop() {
        oscOut.send(&answer);
        delay(100);
}

Is there something missing that would make it work? It looks like a resource (memory?) is exhausted and not released. Greetings

7890 avatar Oct 04 '16 14:10 7890