Got there in the end!
char receivedData[DATA_LENGTH];
if (arduino->isConnected()) {
int hasRead = arduino->readSerialPort(receivedData, DATA_LENGTH);
if (hasRead) {
std::strcat(fullObject, receivedData);
if (fullObject[strlen(fullObject)-1] =='}') {
DEBUG(fullObject);
fullObject[0] = 0;
Thanks for your help
![]()
