Skip to content
Discussion options

You must be logged in to vote

I need the ap.ifconfig(...) as my home router has the same IP as the default AP IP address. And it works for esp32. I need to recompile the RP2040 firmware to change the AP address, unfortunately this cannot be done from MP.

If you see Handle #9, then your browser request reached the server, but somehow the response never got back to the client.

This change to web_page() will ensure that the response contains correctly formatted html.

def web_page():
    global count
    page = f"""<html><head><meta name="viewport" content="width=device-width, initial-scale=1"></head>
    <body><h1>#{count} Hello, World!</h1></body></html>"""
    html = f"""HTTP/1.1 200 OK
Content-Type: text/html
Content-…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@ebolisa
Comment options

Comment options

You must be logged in to vote
4 replies
@shariltumin
Comment options

@ebolisa
Comment options

@shariltumin
Comment options

Answer selected by ebolisa
@ebolisa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants