Hello everyone,
I am currently working with the LoRaWAN API on a RAK device and encountered an issue when trying to remove a multicast group.
Here’s the scenario:
- When I use the following API command:
RAK_LORA_McSession multicast_list;
while (api.lorawan.lstmulc(&multicast_list) == true && multicast_list.McDevclass != 0)
{
bool remove_status = api.lorawan.rmvmulc(multicast_list.McAddress);
Serial.printf("Remove multicast group: %s\r\n", remove_status ? "Success" : "Fail");
}
The function returns False
, indicating that the multicast group was not removed.
- However, when I execute the AT command manually:
AT+RMVMULC=11223344
The multicast group is successfully removed.
I have verified that McAddress
is correctly set before calling the API. Could this be an issue with the API implementation, or am I missing something in the process?
Any insights or suggestions would be greatly appreciated.
Thank you in advance!