Answer the question
In order to leave comments, you need to log in
MICROPYTHON. How to send data to localhost via wi-fi?
Unfortunately, there is no MicroPython tag on Habré, so I use the python tag.
I have a dht11 sensor and an esp8266 module. I need to take temperature and humidity data and send it to a host on the local network. That is, I connect to wi-fi and send a request from the sensor to
http://192.168.1.8/index.py?temperature=*температура*&wet=*влажность
sta_if = network.WLAN(network.STA_IF)
sta_if.active(True)
sta_if.connect("Oleksandr", "19861986")
print("network config:", sta_if.ifconfig())
Answer the question
In order to leave comments, you need to log in
ESP32 / ESP8266 MicroPython: HTTP GET Requests
Mycropython how make GET request
Documentation doesn't say, you say
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question