-->
Page 1 of 2

Receiving OSC via wifi with ESP8266?

PostPosted: Wed Nov 09, 2016 12:55 pm
by gavspav
I'm finding it hard to get this working.
I tried this library https://github.com/CNMAT/OSC/tree/master/examples
The board received messages I'm sending but the bundle.despatch feature doesn't seem to work.

I read that this library doesn't work with ESP8266 - confusing as the sketch is called ESP8266receivebundle so I tried this fork https://github.com/sandeepmistry/esp8266-OSC but that doesn't seem to have the receive by wifi sketch.

Has anyone had any wifi OSC action working?

Or is there a better option for wifi communication?

Re: Receiving OSC via wifi with ESP8266?

PostPosted: Tue Nov 29, 2016 9:52 am
by steriliuz
Hi there. You're probably up and running with OSC by now, but just for the record: I have been using this library (http://platformio.org/lib/show/423/OSC/examples) and got that to work brilliantly.

Re: Receiving OSC via wifi with ESP8266?

PostPosted: Sun Sep 03, 2017 11:02 pm
by Luke Fold
Arent both the libraries above the same? the one reported with the issue, and the one reported as working well?

I'm having exactly the same issue with the bundle.dispatch not executing- any help most appreciated!

Cheers

~Fold

Re: Receiving OSC via wifi with ESP8266?

PostPosted: Mon Sep 04, 2017 3:08 am
by gbafamily1
I have received OSC messages from Processing but have never seen bundles work.

Code: Select allvoid loop() {
  OSCMessage msg;
  int size = Udp.parsePacket();

  if (size > 0) {
    while (size--) {
      msg.fill(Udp.read());
    }
    if (!msg.hasError()) {
      msg.dispatch("/led", led);
    } else {
      error = msg.getError();
      Serial.print("error: ");
      Serial.println(error);
    }
  }
}