Hello,
i am working esp32 using arduino library, in that i not able find the example code of to post the data to server using server ip, location, username, password and server port, i need to develop the application like i read the sensor values, make it into packet form 2324...............2424 (header................footer) of 100 bytes of data, after that i need send that packets into my server,
please provide the example code or help with that...
Can you describe the target server that is to receive this data?
One possibility is an Internet connected server running Apache, php and MySQL. Your esp32 connects to it over wlan and posts data to it.
Hi,
The target server is a webpage which is a HTTP server which is used to display the received values.
Please let me know if you need any other information.
Sounds like what you want to do is have your esp32 act as a web server and data from that server displayed in a web page opened by a web browser. I've never used the esp32, but using an ethernet shield it is fairly simple. You might use the search box in the upper right of this page and search foe "web page server" to see previous discussions and code.
Here the esp32 calls a specially prepared web page on your server and deposits data.
If the server is Linux, then you should have access to PHP for scripting the web page, MySQL for storing the data and Apache for serving the web page. Google also for "lamp server"
I have one example, but it may be difficult to follow at Telephone Caller ID Dev Kit - Exhibition / Gallery - Arduino Forum. Look in CallerID_devkit_software_V1_00.zip and in folder clients you'll find an example of an esp32 client which posts data to an linux (LAMP) server.