你好!
Is there any posibility to directly configure the different address directly from the code?
I try the Lorawan_multicast example code but it doesn’t works
-
MulticastParams_t mult1;
-
uint8_t mulNwkSKey[]={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};
-
uint8_t mulAppSKey[]={0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11,0x11};
-
uint32_t multicastAddress=0x22222222;
-
void setup() {
-
BoardInitMcu();
-
Serial.begin(115200);
-
#if(AT_SUPPORT)
-
Enable_AT();
-
#endif
-
DeviceState = DEVICE_STATE_INIT;
-
LoRaWAN.Ifskipjoin();
-
mult1.Address=multicastAddress;
-
for(int i=0;i<16;i++)
-
{
-
mult1.NwkSKey[i]=mulNwkSKey[i];
-
mult1.AppSKey[i]=mulAppSKey[i];
-
}
-
LoRaMacMulticastChannelLink(&mult1);
-
}
thanks!