🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Wifi stops working after Downloading program

    UIFlow
    3
    6
    4.1k
    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.
    • J
      Javil
      last edited by

      Hi,
      I am writting a python program for the M5Stick pro using UIFlow. It connects to a rest API to get some data and display it to the screen.
      When I click RUN the program is run correctly in the M5Stick. It connects to the server and displays the data. When I click the download button to have the program run at startup, if I turn the M5 off and on again the connection to the server will fail immediately, it looks like it does not store the wifi config after downloading a program.
      Any ideas of what can be wrong?
      In the configuration of M5Burner I tried both Start Mode = Internet Mode and App Mode.

      Thanks in advance.

      ajb2k3A 1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3 @Javil
        last edited by

        @javil When you run a program stored on the M5Stick you need to add WIFI access to you program otherwise wifi will not be loaded as your program will be loaded instead of the built in loader program.

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        J 1 Reply Last reply Reply Quote 0
        • J
          Javil @ajb2k3
          last edited by

          @ajb2k3 Thanks for the answer. How can I do that? Is it just adding some lines of python at the beginning of the program?

          1 Reply Last reply Reply Quote 0
          • felmueF
            felmue
            last edited by

            Hello @Javil

            try adding something like the two first statements I used in this example.

            Thanks
            Felix

            GPIO translation table M5Stack / M5Core2
            Information about various M5Stack products.
            Code examples

            ajb2k3A 1 Reply Last reply Reply Quote 1
            • ajb2k3A
              ajb2k3 @felmue
              last edited by

              @felmue said in Wifi stops working after Downloading program:

              Hello @Javil

              try adding something like the two first statements I used in this example.

              Thanks
              Felix

              Yup noting more than the first couple of blocks is needed to activate Wifi.

              UIFlow, so easy an adult can learn it!
              If I don't know it, be patient!
              I've ether not learned it or am too drunk to remember it!
              Author of the WIP UIFlow Handbook!
              M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

              1 Reply Last reply Reply Quote 0
              • J
                Javil
                last edited by

                Thanks! That worked perfectly :)

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post