ofxOsc communication with CNMAT/OSC

Hi there,

I’m sending OSC messages over UDP(CNMAT/OSC) from and esp32 to my smartphone which runs ofxAndroid and ofxOsc. I seem to be able to receive the messages but not read them I tried to getArgType() and got T for an answer = True. Is there a way to actualy get to the message I send from the esp?

The code on the phone:

while (receiver.hasWaitingMessages()) {
		ofxOscMessage m;
		receiver.getNextMessage(m);

		if (m.getAddress() == "/mac/addresses") {
                      String container = m.getArgAsString(0);
                      if(m.getArgType(0) == OFXOSC_TYPE_TRUE){
                                 //this equals true wich means my message is just true?
                      }
                    //Do some stuff
            }
}

Code thats sends the messages on the esp32:

    for(uint16_t i = 0; i < 64; i++){
      if(maclist[i][0].length() > 11){
        OSCMessage msg(addr);
        msg.add(maclist[i][0]); // maclist[i][0] is a string
        Udp.beginPacket(host, send_port);
        msg.send(Udp);
        Udp.endPacket();
        msg.empty();
        Serial.print("Send OSC -> Value: ");Serial.println(test);
        delay(100);
      }

Solved the problem myself!

Used the ArduinoOSC library from Hideakitai https://github.com/hideakitai/ArduinoOSC

esp32 code changed to:

    for(uint16_t i = 0; i < 64; i++){
      if(maclist[i][0].length() > 11){
        osc.begin(recv_port);
        osc.parse();
        osc.send(host.toString(), send_port, addr, test);
        Serial.print("send osc = "); Serial.println(test);
        delay(100);
      }
    }