Fork of, triyin to rewrite for mbed 5. WIP not yet finished but working. ----------------------- An Open Sound Control library for the mbed, created to be compatible with Recotana's OSCClass library (http://recotana.com) for the Arduino with Ethernet shield. It also uses parts of the OSC Transceiver(Sender/Receiver) code by xshige written by: Alvaro Cassinelli, October 2011 tweaked by: Toby Harris / *spark audio-visual, March 2012
Diff: OSCMessage.h
- Revision:
- 10:936c3afce828
- Parent:
- 9:e4528f622bcc
- Child:
- 12:f2c792ac1aca
--- a/OSCMessage.h Tue Dec 04 02:16:19 2018 +0100 +++ b/OSCMessage.h Tue Dec 04 19:58:14 2018 +0100 @@ -143,7 +143,7 @@ } return *this; } -/* + //blob specific add OSCMessage& add(uint8_t * blob, int length){ //make a piece of data @@ -166,7 +166,7 @@ } return *this; } -*/ + //sets the data at a position template <typename T> OSCMessage& set(int position, T datum){ @@ -193,7 +193,7 @@ } return *this; } -/* + //blob specific setter OSCMessage& set(int position, uint8_t * blob, int length){ if (position < dataCount){ @@ -219,7 +219,7 @@ } return *this; } - */ + OSCMessage& setAddress(const char *); /*============================================================================= @@ -317,7 +317,8 @@ =============================================================================*/ //send the message - OSCMessage& send(UDPSocket &p); + OSCMessage& send(UDPSocket &p, const char *host, uint16_t port); + //fill the message from a byte stream OSCMessage& fill(uint8_t);