downlink stuff

This commit is contained in:
2023-01-22 16:20:55 +01:00
parent afa5506506
commit f9469f8d72
2 changed files with 20 additions and 0 deletions

View File

@ -75,6 +75,21 @@ static void prepareTxFrame( uint8_t port )
}
}
void downLinkDataHandle(McpsIndication_t *mcpsIndication)
{
Serial.printf("+REV DATA:%s,RXSIZE %d,PORT %d\r\n",mcpsIndication->RxSlot?"RXWIN2":"RXWIN1",mcpsIndication->BufferSize,mcpsIndication->Port);
Serial.print("+REV DATA:");
for(uint8_t i=0;i<mcpsIndication->BufferSize;i++)
{
Serial.printf("%02X",mcpsIndication->Buffer[i]);
}
Serial.println();
uint32_t color=mcpsIndication->Buffer[0]<<16|mcpsIndication->Buffer[1]<<8|mcpsIndication->Buffer[2];
}
RTC_DATA_ATTR bool firstrun = true;

5
snippets/downlink.txt Normal file
View File

@ -0,0 +1,5 @@
Handle downlink data:
https://github.com/HelTecAutomation/CubeCell-Arduino/blob/master/libraries/LoRa/examples/LoRaWAN/LoRaWan_downlinkdatahandle/LoRaWan_downlinkdatahandle.ino
Schedule downlink data:
https://www.thethingsindustries.com/docs/integrations/webhooks/scheduling-downlinks/