You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, this code for getIMEI function work much better for me.
String AIS_NB_BC95:: getIMEI()
{
String data = "";
_Serial->println(F("AT+CGSN=1"));
AIS_NB_BC95_RES res = wait_rx_bc(3000,F("+CGSN"));
if(res.status)
{
data = res.data;
int index = data.indexOf(F(":"));
int index2 = data.indexOf(F("\r"));
data = res.data.substring(index+1,index2);
}else {data = "";}
res = wait_rx_bc(500,F("OK"));
return data;
}
The text was updated successfully, but these errors were encountered:
Hi, this code for getIMEI function work much better for me.
String AIS_NB_BC95:: getIMEI()
{
String data = "";
_Serial->println(F("AT+CGSN=1"));
AIS_NB_BC95_RES res = wait_rx_bc(3000,F("+CGSN"));
if(res.status)
{
data = res.data;
int index = data.indexOf(F(":"));
int index2 = data.indexOf(F("\r"));
data = res.data.substring(index+1,index2);
}
The text was updated successfully, but these errors were encountered: