Closed gustavogini closed 8 years ago
char teste[256]; //<<<<<<< teste declaration should be here
for (i = 0; i < buflen; i++)
{
teste[i] = (char) buf[i]; //<<<<< Set buf[i] to teste[i] here
//Serial.print(buf[i], HEX);
Serial.print(buf[i]);
Serial.print(" "); ***the information in the serial Monitor is: 123 34 80 97 110 34 58 34 49 54 48 48 34 44 34 84 105 108 116 34 58 34 49 53 48 48 34 44 34 90 111 111 109 34 58 34 49 53 48 48 34 125 parseObject() failed
}
StaticJsonBuffer<256> jsonBuffer;
JsonObject& root = jsonBuffer.parseObject(teste);
if (!root.success()){
Serial.println("parseObject() failed");
return;
}
int panjson = root["Pan"];
int tiltjson = root["Tilt"];
int zoomjson = root["Zoom"];
I'm sorry for being rude but users should ask/raise issues related to ArduinoJson. ( I have to say this because resolving such issues will slow down the developer of such an awesome codework)
Thanks hemantsagwan.
Thank you very much @hemantsangwan.
Hello Benoit,
I am having problems to parse again, but now I am working with RF433MHz. I suppose that problem is happening becouse I`m not converting correctly. Let me show you:
Thanks
Regards