MBED implementation of JAudioStream
Diff: JAudioStream.cpp
- Revision:
- 6:7e366261cd93
- Parent:
- 5:77a5d031f270
- Child:
- 7:9dfba830a0c8
--- a/JAudioStream.cpp Tue Aug 18 11:53:05 2015 +0000 +++ b/JAudioStream.cpp Wed Aug 19 09:04:41 2015 +0000 @@ -29,6 +29,7 @@ } bool JAudioStream::read(char *buffer, int size) { + TRACE("Received %s", buffer); socket.receiveFrom(endPoint, buffer, size); return true; } @@ -49,7 +50,7 @@ send(message, MESSAGE_SIZE); } -void JAudioStream::buildMeassge(char* cmd, int param, char* message) { +void JAudioStream::buildMeassge(const char* cmd, int param, char* message) { char bParam[MESSAGE_COMP_SIZE]; intTocharArr(param, bParam); char i; @@ -61,7 +62,7 @@ } } -void JAudioStream::buildMeassge(char* cmd, int param, char* data, char* message) { +void JAudioStream::buildMeassge(const char* cmd, int param, char* data, char* message) { char bParam[MESSAGE_COMP_SIZE]; char i; for (i=0; i<MESSAGE_COMP_SIZE; i++) { @@ -85,6 +86,7 @@ } void JAudioStream::send(char* data, int size ) { + TRACE("Sending %s", data); socket.sendTo(endPoint, data, size); }