bb driver impl (not tested)

This commit is contained in:
2026-08-14 00:51:19 -05:00
parent 2456b83c0d
commit f85dee5d7a
4 changed files with 372 additions and 24 deletions
+9 -3
View File
@@ -10,6 +10,7 @@
#include <vector>
#include "esp_err.h"
#include "freertos/FreeRTOS.h"
#include "bb_expantions.hpp"
#include "bbnow_pub.hpp"
@@ -32,7 +33,11 @@ public:
static esp_err_t send_pub(const BBNowPubPacket& packet);
static bool has_pub();
static bool recv_pub(BBNowPubPacket& packet);
static bool recv_pub(
MacAddress& source,
BBNowPubPacket& packet,
TickType_t max_delay = 0
);
static esp_err_t send_priv(
const MacAddress& destination,
@@ -41,7 +46,8 @@ public:
static bool has_priv();
static bool recv_priv(
MacAddress& source,
BBNowPrivPacket& packet
BBNowPrivPacket& packet,
TickType_t max_delay = 0
);
/// Broadcast a discovery packet.
@@ -71,4 +77,4 @@ private:
static std::vector<PairedExpander> paired_expanders;
};
#endif /* _BBNOW_DRIVER_HPP */
#endif /* _BBNOW_DRIVER_HPP */