Open ghost opened 5 years ago
The usual code pattern for route bundles is like this:
OSCBundle bundle;
int size = Udp.parsePacket(); if (size > 0) { while (size--) bundle.fill(Udp.read()); if (!bundle.hasError()) { bundle.route("/path1", path1_handler); bundle.route("/path2", path2_handler); // ... } }
during development (but also in production!) would be very helpful to know if the received bundle contains messages with an address not handled.
Is there a way to know this?
The usual code pattern for route bundles is like this:
OSCBundle bundle;
int size = Udp.parsePacket(); if (size > 0) { while (size--) bundle.fill(Udp.read());
if (!bundle.hasError()) { bundle.route("/path1", path1_handler); bundle.route("/path2", path2_handler); // ... } }
during development (but also in production!) would be very helpful to know if the received bundle contains messages with an address not handled.
Is there a way to know this?