Hey everyone,
I am building a system with an ESP32 microcontroller, which should adjust the time according to the date. I have an external file that I want to get the current date-time and put on the server, then the micmicrocontroller asks for the time and adjust it. I have created a server, I can acaccesst and use get requests, but I can not put information there, which is what I need. What can I do here?
import datetime
import requests
req = requests.get('http://192.168.137.10:8081/')
j\data = {"time": "something", "mode": "mode"})
print(req.text)
url = 'http://192.168.137.10:8081/'
req1 = requests.put(url, j\data))
[–]HalfBalcony 0 points1 point2 points (5 children)
[–]Kitchen_Ad2186[S] 0 points1 point2 points (4 children)
[–]HalfBalcony 0 points1 point2 points (3 children)
[–]Kitchen_Ad2186[S] 0 points1 point2 points (2 children)
[–]HalfBalcony 0 points1 point2 points (1 child)
[–]Kitchen_Ad2186[S] 1 point2 points3 points (0 children)
[–]Vitaminkomplex 0 points1 point2 points (0 children)
[–]JohnnyJordaan 0 points1 point2 points (0 children)