Cheers all,
Working on a project where ESP8266 acts as client to webpage served by rpi. Need help formatting/defining POST command for ESP to send data and commands from ESP to webpage. Using Arduino IDE.

Expect it to be something similar to this:
client.print(String(‘POST /motion?state=’) + String(pir_pin) + ‘ HTTP/1.1\r\n’ + ‘Host: ‘ + http_site + ‘\r\n’ + ‘Connection: close\r\n\r\n’);

Immediate goal is to send POST request to access python script on rpi.

Can anyone help?

Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha loading...