String mm = "98CDAC23EC94";
uint8_t arr[6];
void setup()
{
Serial.begin(9600);
//cosn(arr, mm);
String p = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
for (int i = 0; i < 26 ; i++) {
String pp = String(p[i]);
Serial.println(strtoul( (char*)pp.c_str(), nullptr, 36));
} Serial.println(strtoul( "11z", nullptr, 36));
}
//template <typename >
void cosn(uint8_t *ar, String S)
{
int g = 0;
String p;
for (int i = 0; i < 6 ; i++) {
p = S[g] ;
g++;
p += S[g];
g++;
ar[i] = strtoul( (char*)p.c_str(), nullptr, 16);
}
}
void loop()
{ delay(100);
}
Loading
esp32-s2-devkitm-1
esp32-s2-devkitm-1