BLE RX Lag Improvements (#2770)

* Better handling on filtering to improve lag.
This commit is contained in:
Netro 2025-08-27 09:46:53 -04:00 committed by GitHub
parent fe826d5d98
commit 70ace4be8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 51 additions and 75 deletions

View file

@ -99,6 +99,7 @@ struct BleRecentEntry {
ADV_PDU_TYPE pduType;
uint8_t channelNumber;
MAC_VENDOR_STATUS vendor_status;
std::string vendor_name;
bool entryFound;
BleRecentEntry()
@ -119,6 +120,7 @@ struct BleRecentEntry {
pduType{},
channelNumber{},
vendor_status{MAC_VENDOR_UNKNOWN},
vendor_name{},
entryFound{} {
}
@ -225,7 +227,7 @@ class BLERxView : public View {
void file_error();
void on_timer();
void handle_entries_sort(uint8_t index);
void handle_filter_options(uint8_t index);
bool handle_filter_options(uint8_t index, const BleRecentEntry& entry);
bool updateEntry(const BlePacketData* packet, BleRecentEntry& entry, ADV_PDU_TYPE pdu_type);
bool parse_beacon_data(const uint8_t* data, uint8_t length, std::string& nameString, std::string& informationString);
bool parse_tracking_beacon_data(const uint8_t* data, uint8_t length, std::string& nameString, std::string& informationString);