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;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user