thanks for the reply but I did set the region into the sketch like this:
#define ACTIVE_REGION LORAMAC_REGION_EU868
and also:
LoRaMacRegion_t loraWanRegion = LORAMAC_REGION_EU868;
but it’s probably coded in some library CN470 as default region, and the result I get is the log below:
LoRaWAN EU868 Class A start!
+REGION=CN470
+OTAA=1
+Class=A
+ADR=1
+DR=3
+Power=17
+IsTxConfirmed=1
+AppPort=2
+DutyCycle=15000
+Retry=1
+DevEui=###################(For OTAA Mode)
+AppEui=8888888888888888888(For OTAA Mode)
+AppKey=88888888888888888888888888888888(For OTAA Mode)
+NwkSKey=88888888888888888888888888888888(For ABP Mode)
+AppSKey=88888888888888888888888888888888(For ABP Mode)
+DevAddr=007E6AE4(For ABP Mode)
+RX1DELAY=1
+RX2DELAY=2
+RX2DR_TYPE=0
+RX2FREQ_TYPE=0
+RX2DR=0
+RX2FREQ=505300000
sx1262 spi test OK
joining…
TX on freq 868300000 Hz DR 3 power 14
Event : Tx Done
RX on freq 868300000 Hz at DR 3
Event : Rx Timeout
RX on freq 505300000 Hz at DR 0
Event : Rx Timeout
TX on freq 868500000 Hz DR 3 power 14
Event : Tx Done
RX on freq 868500000 Hz at DR 3
Event : Rx Timeout
RX on freq 505300000 Hz at DR 0
Event : Rx Timeout
TX on freq 868100000 Hz DR 3 power 14
Event : Tx Done
RX on freq 868100000 Hz at DR 3
Event : Rx Timeout
RX on freq 505300000 Hz at DR 0
Event : Rx Timeout
TX on freq 868300000 Hz DR 3 power 14
Event : Tx Done
RX on freq 868300000 Hz at DR 3
basically it’ transmitting on EU868 and receiving on CN470
I also installed libraries for Heltec ESP32 in a desperate tentative to have the region default value set and indeed if I choose the ESP board I can set the region but apparently is not set as global value.