Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, an initiative of Stroud Water Research Center designed to help people advance knowledge and stewardship of fresh water.
New to EnviroDIY? Start here

need to find WiFi Bee ESP8266 MAC address

Home Forums Mayfly Data Logger need to find WiFi Bee ESP8266 MAC address

Viewing 8 reply threads
  • Author
    Posts
    • #14899
      Wayne
      Participant

        The university network needs the WiFi Bee ESP8266 MAC address in order to register the device.  Registration of the device is required before network access is allowed.  Any code pointers for a sketch to obtain the MAC address?

        Thanks in advance

      • #14900
        Sara Damiano
        Moderator

          I didn’t read through this in its entirety, but here’s something to start:  https://randomnerdtutorials.com/get-change-esp32-esp8266-mac-address-arduino/

        • #14901
          Sara Damiano
          Moderator

            Also, if the university requires any sort of two-set log in to the network (like, on a phone where you need to click ok on an “accept the terms” page) you won’t be able to do it.

          • #14911
            Wayne
            Participant
              Hi Sara,
              Thank you for the quick response.  I already tried the site listed and obtained the attached pile of error messages.
              Stay safe,
              W
              Attachments:
            • #14914
              Sara Damiano
              Moderator

                I’m sorry, I should have read that more carefully.  That program is meant to be written to an ESP, not to a Mayfly.

                Anyway, you should be able to do something like this:

                 

              • #14922
                Wayne
                Participant

                  Hi Sara,

                  Thank you for another iteration.  The verify attempt resulted in the attached list activity and errors.  I highlighted the most apparent error messages, so that may be the next things to address.

                  This is clearly exposing my bleeding edge of knowledge concerning Arduino programming.

                  Your suggestions are appreciated.  Stay safe,

                  W

                • #14924
                  Wayne
                  Participant

                    Hi again,

                    Another effort used the correct void statements to get past compile, see copy of sketch used.

                    However, even though no red error message posted on upload, two lines were presented:

                    Invalid library found in C:\Users\wchudyk\Documents\Arduino\libraries\EnviroDIY_Workshops_Online-main: no headers files (.h) found in C:\Users\wchudyk\Documents\Arduino\libraries\EnviroDIY_Workshops_Online-main

                    Invalid library found in C:\Users\wchudyk\Documents\Arduino\libraries\libraries: no headers files (.h) found in C:\Users\wchudyk\Documents\Arduino\libraries\libraries

                    and the serial output was as shown in the attached screenshot.

                    Your suggestions are welcome,

                    W

                     

                  • #14936
                    Sara Damiano
                    Moderator

                      Doh!  I’m sorry about the missing void statements.  That’s what happens when I write code on a discussion forum.  Good job fixing it!

                      The invalid library statements are probably because you put something that wasn’t a library into the library folder, even if it was just an empty folder.   The Arduino IDE thinks everything in that C:\Users\wchudyk\Documents\Arduino\libraries folder must be a library and gets confused otherwise.

                      Ok, so on to the errors on the ESP8266.  The board is responding to you, at least to tell you there’s been an error, so that’s a good thing.  My first guess would be that your ESP8266 has an older version of the AT firmware, and is expecting a different command.  Here’s a new version with some of the older commands, and a check for the modules firmware version.  Depending on which version you have, these may still not get you the MAC address, but hopefully they’ll at least get us the version to track down the command that will.

                       

                       

                    • #14940
                      Wayne
                      Participant

                        Hi Sara,

                        Thank you, thank you, thank you!

                        It worked once I cleaned up the libraries file and appears to have needed the older set of commands.  The serial output is attached.

                        Now back to shoveling out our nor’easter foot+ of snow.

                        Have a great holiday season and best wishes for the new year,

                        W

                    Viewing 8 reply threads
                    • You must be logged in to reply to this topic.