11.8:更改了一些bug
This commit is contained in:
@@ -1,8 +1,22 @@
|
||||
#include "LoRa.h"
|
||||
|
||||
void vLoRaConnectionPkt(void)
|
||||
void vLoRaConnectionPkt(uint8_t ucNodeId)
|
||||
{
|
||||
vUsart3SendArray((uint8_t *)&xLoRaGateConfig, 3);
|
||||
if (ucNodeId == xLoRaNode1Config.ucLoRaNode1Identifier)
|
||||
{
|
||||
/* code */
|
||||
vUsart3SendArray((uint8_t *)&xLoRaNode1Config, 3);
|
||||
}
|
||||
else if (ucNodeId == xLoRaNode2Config.ucLoRaNode2Identifier)
|
||||
{
|
||||
/* code */
|
||||
vUsart3SendArray((uint8_t *)&xLoRaNode2Config, 3);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* code */
|
||||
vUsart3SendArray((uint8_t *)&xLoRaGateConfig, 3);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -125,7 +125,7 @@ static LoRaExecutorFlag_t xLoRaExecutorStatus = {
|
||||
|
||||
static LoRaUsart3Rx_t xLoRaUsart3Rx = { 0 };
|
||||
|
||||
void vLoRaConnectionPkt(void);
|
||||
void vLoRaConnectionPkt(uint8_t ucNodeId);
|
||||
void vLoRaToGateIdPkt(uint8_t ucNodeId);
|
||||
void vLoRaToGateSenIdPkt(uint8_t ucSensorId);
|
||||
void vLoRaToGateExeIdPkt(uint8_t ucExecutorId);
|
||||
|
||||
Reference in New Issue
Block a user