Post request ?
Posted: Mon Jan 17, 2022 5:50 am
Hi guys,
In short, I would like to send 2 variables to a server, the Asynchronous web server (hosted on a Nodemcu), in order update the page (and save battery life on the unit which checks the DHT22)
But how do i sent the actual values of a variable and not only the name ?
With JSON or url-encoded, what ever it takes.
In my code i have some sections, first including libraries, defining constants, then a rawlitteral section which contains a index page and a script, then a setup section which starts the server, and a loop section which reads the temperature and humidity. Anyway, i'm a bit lost. I can only do Basic programming, now we have a amazing piece of hardware but so much to learn
I can post the code, it's from a kit bought on amz.
Thanks,
Lh
In short, I would like to send 2 variables to a server, the Asynchronous web server (hosted on a Nodemcu), in order update the page (and save battery life on the unit which checks the DHT22)
But how do i sent the actual values of a variable and not only the name ?
With JSON or url-encoded, what ever it takes.
In my code i have some sections, first including libraries, defining constants, then a rawlitteral section which contains a index page and a script, then a setup section which starts the server, and a loop section which reads the temperature and humidity. Anyway, i'm a bit lost. I can only do Basic programming, now we have a amazing piece of hardware but so much to learn
I can post the code, it's from a kit bought on amz.
Thanks,
Lh