Documentation Center
📝
NOTE:
RAK3372 supports the following regions:
RAK_REGION_EU433 = 0
RAK_REGION_CN470 = 1
RAK_REGION_RU864 = 2
RAK_REGION_IN865 = 3
RAK_REGION_EU868 = 4
RAK_REGION_US915 = 5
RAK_REGION_AU915 = 6
RAK_REGION_KR920 = 7
RAK_REGION_AS923 = 8
RAK_REGION_AS923-2 = 9
RAK_REGION_AS923-3 = 10
RAK_REGION_AS923-4 = 11
📝
NOTE:
Make sure you have configured the correct RAK board before uploading the code. See
Also, check
RAK3372 COM Port on Device Manager
4. Open the Tools Menu and select a COM port. COM28 is currently used.
if
(
!
api
.
lorawan
.
band
.
set
(
OTAA_BAND
))
{
Serial
.
printf
(
"LoRaWan OTAA - set band is incorrect! \r\n"
);
return
;
}
uint16_t
maskBuff
=
0x0002
;
if
(
!
api
.
lorawan
.
mask
.
set
(
&
maskBuff
))
{
Serial
.
printf
(
"LoRaWan OTAA - set mask is incorrect! \r\n"
);
return
;
}
c