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

    How potential buyers could insert WIFI-parameters

    Scheduled Pinned Locked Moved Discussion
    wifiinformation
    25 Posts 12 Posters 7.6k Views 15 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.
    • R Offline
      rskoniec @jmarcelino
      last edited by

      @jmarcelino said in How potential buyers could insert WIFI-parameters:

      @rskoniec

      Sure I'll get this up ASAP.

      Any update (ETA) on this?

      The machine is working as good as it's code.

      1 Reply Last reply Reply Quote 0
      • L Offline
        lsoria @seb
        last edited by

        @seb my main.py is the same as the official repo:

        https://github.com/jczic/MicroWebSrv/blob/master/main.py

        I've ordered some LoPy4. I'll try the same code when they arrive. for the moment I've managed to process POST request by hand, based on the next example, mixed with the given in the page you shared:
        https://github.com/RinusW/WiPy/blob/master/AiCWebserver/AiCWebserv.py

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          JohnPiantanida @lsoria
          last edited by

          @lsoria I know old thread... but I just found out about AiCWebserv and was trying to get it to work. Did you have any luck with it? I've gotten other webserver examples to work, but not this one (yet).

          https://github.com/RinusW/WiPy/blob/master/AiCWebserver/AiCWebserv.py

          Looking for someone who has got it working. I am using a WiPy 3 on a pysense board.

          C 1 Reply Last reply Reply Quote 0
          • C Offline
            cmisztur @JohnPiantanida
            last edited by

            @johnpiantanida ESP-IDF has 3 ways of provisioning the network, but not sure if any are supported by Pycom FW.

            ● Soft AP
            ○ Manual Wi-Fi change on iOS
            ● Bluetooth
            ○ Larger flash footprint
            ● Smart-Config

            if (conn_mgr_prov_is_provisioned(&provisioned) != ESP_OK) {  return; }
            if (! provisioned) 
            {     
             /* Starting provisioning */     
             conn_mgr_prov_start_provisioning(prov_type, security, pop, service_name, service_key); 
            } else {     
             /* Start the station */     
             wifi_init_sta(); 
            } 
            
            esp_err_t event_handler(void *ctx, system_event_t *event)  
            {      
             conn_mgr_prov_event_handler(ctx, event);          
             switch(event->event_id) {      
              case SYSTEM_EVENT_STA_START: 
            … 
            … 
            … 
            
            1 Reply Last reply Reply Quote 0
            • A Offline
              andreas @misterlisty
              last edited by

              Dear @misterlisty,

              the other day, you made a remark here that you are using Bluetooth and a standard BLE scanner app to update the WiFi credentials. We also believe this would be a perfect solution unless the Smart Config option might get unlocked through ESP-TOUCH at some point in the future.

              As you told us that it even works really well and you might be able to share the code, we are humbly asking if you could give us some pointers regarding that.

              The background of our question is that we are in the process of conceiving a convenient datalogger application [1] for the Hiveeyes project [2] which is well suitable to be used for other environmental purposes beyond monitoring bee hives. We will be happy when this might spark your interest.

              With kind regards,
              Andreas.

              [1] https://github.com/hiveeyes/hiveeyes-micropython-firmware
              [2] https://community.hiveeyes.org/

              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
              • 2
              • 2 / 2
              • First post
                Last post

              Pycom on Twitter

              Pycom