B4R Question ID (serial number) of WEMOS board?

Erel

B4X founder
Staff member
Licensed User
Longtime User
ESP8266 boards:
B4X:
Sub Process_Globals
  Public Serial1 As Serial
  Private chipid As ULong 'ignore
End Sub

Private Sub AppStart
  Serial1.Initialize(115200)
  Log("AppStart")
  RunNative("GetChipId", Null)
  Log(chipid)
End Sub


#if C
void GetChipId(B4R::Object* u) {
    b4r_main::_chipid = ESP.getChipId();
}
#end if

There is no equivalent id in standard Arduino boards.
 
Upvote 0

Tayfur

Well-Known Member
Licensed User
Longtime User
thank for helps
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User

Fyi - if you want to suppress the "Variable 'chipid' is never assigned any value" warning, just initialize it to 0:

B4X:
Private chipid As ULong = 0

- Colin.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…