WiFi Mac Address wrong

Hi everyone, I tried to compile the WiFiClientStaticIP example file. The compilation was successful and everything works except the detection of the MAC address of the WiFi card.
on call:
Serial.print (“ESP Mac Address:”);
Serial.println (WiFi.macAddress ());
The serial Monitor writes:
ESP Mac Address: A5: A5: A5: A5: A5: A5
Has anyone found a solution to this problem.
Thanks to those who wanted to help me.
Regards
Gianfranco

Hi @Gianfry60
Have you make sure all the libraries are up to date?

Hi @ansonhe97, I am using the following version:
name = Seeed_Arduino_atWiFi
version = 1.0
author = Hristo Gochkov.
This is the same version I find at: https://github.com/Seeed-Studio/Seeed_Arduino_atWiFi.
Is there a more updated version? Where can I download it?
I await your instructions.
Thank you
Gianfranco

Hi @Gianfry60

I have just tested the code and found the same outcome. This is a bug and mac address is not correct. We are currently planning to reconstruct Wi-Fi software please stay tuned.

Sorry for any inconvenience caused.

Hi @ansonhe97, I believe there is also a problem with the WiFi.dnsIP () function, this also returns a wrong address. Also I have a problem when I have a WiFi signal too low and the connection is not good. I would like to disconnect the wifi and reconnect it but the WiFi.disconnect () function seems not to work do you have any suggestions?
Thank you

Hi @Gianfry60

Noted down the bugs. We are planning to constructure Wi-Fi software in terms of the framework. Currently we are using the old AT commands to deal with wifi in the wireless core RTL8720. The new framework will be using RPC to communicate and all the wifi workload will run on the 8720.

The wifi software will be done after the BLE which is also releasing in the coming weeks. So please stay tuned. Sorry for the inconvenient caused.

Hi @ansonhe97, is there a software command to reset the WiFi? Or is there a software command to restart the Wio Terminal? I have a strange situation in a network made up of multiple Access points with the same SSID. Sometimes the Wio Terminal connects to a distant access point with a weak signal, but this connection is not real, there is no real connection and IP traffic does not exist. The Wio Terminal does not return to the nearby AP and the only way to reconnect it is by performing a Hardware reset.
Do you have any idea about it?
Thank you
Regards
Gianfranco

Hi @Gianfry60

You can call this function to reset Wio Terminal softwarely: https://github.com/Seeed-Studio/ArduinoCore-samd/blob/master/cores/arduino/Reset.cpp#L68

Or you can use this to reset RTL8720 the wireless core: https://github.com/Seeed-Studio/esp-at-lib/blob/develop/src/esp/esp.h#L51

Hi @ ansonhe97, Thanks for your answer but sorry for my ignorance but I am a new C ++ programmer, I don’t understand what are the arguments of the esp_reset () function that I have to insert. Can you give me an example of the command line I need to enter to reset? I would be very grateful to you.
Thank you
Gianfranco

May be it’s easier to reset the Wio Terminal then. You can just run:

NVIC_SystemReset();