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

    Connecting a Pycom board to a captive portal network

    Scheduled Pinned Locked Moved WiPy 2&3
    2 Posts 2 Posters 51 Views 2 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.
    • D Offline
      DexTr
      last edited by

      Hello !

      I am working on a very basic IoT project for my semester in my engineering school. It's sending sensor data from the Pysense board to a Raspberry Pi board using MQTT and then using that data on an InfluxDB database to show graphs of stuff like temperatures, pressure etc.

      Me and my classmates have completed the project, but I want to push it a step further. The only problem is, I can only work in my apartment, which is in a student complex with free Wifi, the kind that requires you to go through a login page and enter an email address and password before being allowed Internet access.

      So my question is, is there a way to be able to log the Wipy board on this captive portal ? And if so, what do I need to put in the wlan.connect() arguments ?

      Thanks for answering !

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gijs
        last edited by

        Hi,
        That really depends on how the captive portal works. If it is a WPA2-Enterprise system, you could check the code here: https://docs.pycom.io/tutorials/networks/wlan/#connecting-to-a-wpa2-enterprise-network
        If it is a basic captive portal over http, you could record and mimic the response your computer sends to such a captive portal and create that in a socket on the Pycom board. I imagine you would be able to connect to the WLAN network just fine and get DHCP confirmation, but then always get redirected through the logon page.

        Im not here to advise you on how to exploit such systems though, so be careful and do not violate the terms and services.

        1 Reply Last reply Reply Quote 1

        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