i have heltec wireless stick lite, using ESP32 lorawan library provided at github/HelTecAutomation/ESP32_LoRaWAN.
i have uploaded OTAA example code with OTAA configuration to send lora packet to helium console.
is there a library can i use to receive data data packet “downlink”
esp32-OTAA-downlink
ESP_LORAWAN has downlink receive and decode.
sorry but i didnt find it can u help me plz,like an example
void attribute((weak)) downLinkDataHandle(McpsIndication_t *mcpsIndication)
{
lora_printf("+REV DATA:%s,RXSIZE %d,PORT %d\r\n",mcpsIndication->RxSlot?“RXWIN2”:“RXWIN1”,mcpsIndication->BufferSize,mcpsIndication->Port);
lora_printf("+REV DATA:");
for(uint8_t i=0;i<mcpsIndication->BufferSize;i++)
{
lora_printf("%02X",mcpsIndication->Buffer[i]);
}
lora_printf("\r\n");
}
can i use it to subscribe and publish mqtt message
Of course you can do