The example uses HTTP_POST_start (https://github.com/adafruit/Adafruit_FO ... .cpp#L1632).
It works like this:
Code: Select all
uint16_t statuscode;
int16_t length;
char url[] = "http://www.myserver.com/script.php";
char data[] = "{\"simple\":\"json\"}";
fona.HTTP_POST_start(url, F("text/plain"), (uint8_t *) data, strlen(data), &statuscode, (uint16_t *)&length); // also tried "application/json" with no success
but as stated I don't see the json params or I don't know how to access these arguments in my PHP script. What is wrong?