Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    HTTP Server with WiFi in AP mode

    Scheduled Pinned Locked Moved Discussion
    @http server@http client@ap mode@sta mode@wipy
    4 Posts 3 Posters 553 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      Milan
      last edited by

      Is the following configuration possible?

      • Pycom device 1 - HTTP server with WiFi in AP mode, listening on port for data from device 2
      • Pycom device 2 - HTTP client with WiFi in STA mode (connected to device 1 AP), sending data to device 1
      1 Reply Last reply Reply Quote 0
      • J Offline
        johand
        last edited by

        Yes, should be no problem.

        1 Reply Last reply Reply Quote 0
        • T Offline
          thibault
          last edited by

          Yes, i do this: in our product, device 1 is a wipy, and device 2 is a lopy. That run fine.

          1 Reply Last reply Reply Quote 0
          • M Offline
            Milan
            last edited by Milan

            @johan @thibault I've managed to do it finally.
            After I've set IP for HTTP server

            wlan.ifconfig(id=1, config=('192.168.4.10', '255.255.255.0', '192.168.4.1', '192.168.4.1'))
            

            i've tried to read IP address of HTTP Server and that was the problem, it's keep returning me '0.0.0.0'. IP address was set properly to '192.168.4.10' but function returns '0.0.0.0'.

            print('Network config:', wlan.ifconfig())
            Network config: ('0.0.0.0', '0.0.0.0', '0.0.0.0', '0.0.0.0')
            

            Thank you for your help.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post

            Pycom on Twitter

            Pycom