I’m porting code from Adafruit Feather FONA where I post data to a php file to push data to a MySQL database, and struggling to get the webhook to work properly - or post any data at all. Data shows up in the web console fine.
Here is the code that sends data to the Hologram Cloud:
HologramCloud.print(“Time=”);
HologramCloud.println(Clock.currentDateTime());
HologramCloud.print("DeviceID= ");
HologramCloud.println(simCCIDReply);
HologramCloud.print(“Status=”);
HologramCloud.println(Status);
HologramCloud.print(“SigStrength=”);
HologramCloud.println(HologramCloud.getSignalStrength());
Hi,
Right now our cloud can do this, but you have to send it JSON from the Dash so it knows how to parse each field. I’d recommend using the Arduino JSON library to do this.
You can use this in the Arduino IDE by going Sketch->Include Library->Manage Libraries and then find ArduinoJson in the list and install it.
Stick #include <ArduinoJson.h> at the top of your sketch
Then in your route, you can use variables like <<decdata.time>> or <<decdata.signalStrength>> and it will pull those fields out of the JSON and put them into the payload.