Heltec_ESP32 icon indicating copy to clipboard operation
Heltec_ESP32 copied to clipboard

Error about correct license - but license provided...

Open michapr opened this issue 10 months ago • 3 comments

I have to "reactivate" a WSLV3 board (have erased flash while looking for an other issue) - but the serial activation does not work.

Using the LoRaWan.ino sample code and get still the following:

21:03:16.335 -> Please provide a correct license! For more information:
21:03:16.383 -> http://www.heltec.cn/search/
21:03:16.383 -> ESP32ChipID=A42482FA12F4

My code:

#include "LoRaWan_APP.h"

uint32_t license[4] = {0xC2XXXXCC, 0x1BXXXX8F, 0x52XXXXD5, 0x0FXXXXAD };

/* OTAA para*/
uint8_t devEui[] = { 0x........ };
...

The license contain the right numbers - instead of the "XXXX" are the valid numbers ;)

What is wrong?

Thanks for any help!

EDIT: I have solved this for myself - using the "AT" command. But anyway the requested solution should work, right?

michapr avatar Apr 18 '24 19:04 michapr

hello, can you explain please how you solved the problem using "AT" , i have the same issue as well

hoka83 avatar Apr 29 '24 12:04 hoka83

https://docs.heltec.org/general/how_to_use_license.html

Insert in Arduino serial monitor window the Line AT+CDKEY=xxx -> the key without any "0x" or "," - only the numbers/letters and send it to device, while it show you that correct license will be needed

michapr avatar Apr 29 '24 17:04 michapr

sent AT+CDKEY=Xxx when it complains about no license. that was a pain.

mcu.setlicense is broken in code so this appears to be the only way to activate.

HotNoob avatar Jul 26 '24 02:07 HotNoob