bb driver impl (not tested)
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user