I am trying to modify data in a database on an external Mysql server.
The database and PHP work correctly tested with a form on the server and from disk.
Wemos also connects to the database but modifies the record to a null value every time.
Something is wrong with passing a variable in the POST method.
Serial.println shows the value of the PostData variable.
Asking for help possibly an example of a full header with POST method and variables.
.
Libraries in the project:
#include <ESP8266WiFi.h>
#include <ESP8266Ping.h>
#include <ESP8266HTTPClient.h>
#include <SPI.h>
The database and PHP work correctly tested with a form on the server and from disk.
Wemos also connects to the database but modifies the record to a null value every time.
Something is wrong with passing a variable in the POST method.
Serial.println shows the value of the PostData variable.
Asking for help possibly an example of a full header with POST method and variables.
Code: C / C++
Libraries in the project:
#include <ESP8266WiFi.h>
#include <ESP8266Ping.h>
#include <ESP8266HTTPClient.h>
#include <SPI.h>