downlink stuff
This commit is contained in:
@ -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
5
snippets/downlink.txt
Normal 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/
|
Reference in New Issue
Block a user