WIP: More new BLE
This commit is contained in:
parent
a9212c5a3a
commit
58f379dc18
10 changed files with 301 additions and 22 deletions
|
@ -49,11 +49,14 @@ static PacketTracker_T Tracker =
|
|||
.head = 0,
|
||||
};
|
||||
|
||||
// A packet is _new_ if the combination of BLE adress, type, and event number have not been seen recently.
|
||||
// A packet is _new_ if the combination of BLE address, type, and event number have not been seen recently.
|
||||
bool BLE_IsPacketNew(const uint8_t *sender_BD_ADDR,
|
||||
BLE_PacketType_T packet_type,
|
||||
uint8_t event_number)
|
||||
{
|
||||
//esp_log_level_set("BLE", ESP_LOG_DEBUG);
|
||||
//KLOG_DEBUG("BLE", "Packet from %s", BLE_ADDR_To_Str(sender_BD_ADDR));
|
||||
|
||||
// Check if the packet already exists in the tracker.
|
||||
for (int i = 0; i < Tracker.count; i++)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue