BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Trouble sending JSON datapackets to webhook

#1

Hey guys. So I’m trying to set up two ESP32 boards to communicate on separate founds to the blynk app which bridges them with the Losant IoT workflow platform. The Losant platform lets you send/recieve JSON datapackets through a url they provide, but every time I pushed the data to the webhook, all i got was the {success: true} thing to show the connection worked instead of the actual message going through. My set up was basically a webhook widget with the losant url set to GET on V0 and a terminal on V1. In the adruino code I tried to write it to print to terminal every time it handles a webhook instance. Any ideas for what could be wrong? Thanks!

0 Likes

#2

just from very old experience, it sounds like you are doing something like this

result = sendthisvalue("99");
print result;

success

some programmers beleive that result should equal “99”, but in fact, result equals the success or failure message if “99” was sent correctly/successfully.

0 Likes

#3

Any tips to extract the json messages or how to parse/navigate them with this?

0 Likes

#4

I’d say that your Losant HTTP Response node is incorrectly configured in the body template field…

Pete.

0 Likes