B4R Question How to get the mac address from esp32

Humberto

Active Member
Licensed User
Longtime User
This routine seems that is not working any more

B4X:
Sub MacAddress() As Byte()
    RunNative("getMac", Null)
    Return macarray
End Sub
#if C
  #include <ESP8266WiFi.h>
  void getMac(B4R::Object* u) {
  WiFi.macAddress((Byte*)b4r_wifiserver::_macarray->data);
  }
#end if
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…