probleme de connexion socket esp32 #10730
Unanswered
william7-prog
asked this question in
ESP32
Replies: 1 comment 2 replies
-
Even if the formatting of your code example was lost, it looks ok. I would write the wait loop as:
The Notes about posting: Please enclose code in lines containing three backticks ```. Then it will be shown properly formatted. And please use the English language. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have this error message (comment solve this please):
with this python code:
'''import network
import socket
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.isconnected()
ssid= ""
password= ""
print("Borne wifi : ", ssid)
if not wlan.isconnected():
print('connecting to network...')
wlan.connect(ssid,password)
while not wlan.isconnected():
pass
if wlan.isconnected():
print('network config:', wlan.ifconfig())
serveursocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
serveursocket.bind(('', 80))
serveursocket.listen(5)
def web_page():
html = """
ESP32 WebServer
Bienvenue sur l'ESP32
"""
return html
'''
Beta Was this translation helpful? Give feedback.
All reactions