esp8266 wifi.getconfig not giving correct mac address

Discussion of issues related to writing ZBasic applications for targets other than ZX devices, i.e. generic targets.
Post Reply
JimG
Posts: 17
Joined: 24 March 2017, 6:15 AM

esp8266 wifi.getconfig not giving correct mac address

Post by JimG »

I'm not getting the correct mac address, am I doing this correctly?

Code: Select all

dim curssid as string,curpw as string,b(6) as byte
call wifi.getconfig(@curssid,@curpw,@b)
debug.print curssid
debug.print curpw
debug.print cstrhex(b(0));":";cstrhex(b(1));":";cstrhex(b(2));":";cstrhex(b(3));":";cstrhex(b(4));":";cstrhex(b(5))
I'm getting 00:00:00:00:00:00 for the mac address, the ssid and pw print correctly.
Post Reply