This commit is contained in:
Martin Bauer
2024-04-14 18:04:52 +02:00
parent a9ad6e9245
commit 269c6054eb
17 changed files with 763 additions and 15 deletions

View File

@@ -0,0 +1,28 @@
#pragma once
#include "NimBLEDevice.h"
namespace esphome
{
namespace nimble_tracker
{
class NimbleTrackerEvent
{
public:
NimbleTrackerEvent(NimBLEAddress address, uint8_t address_type, int rssi, int8_t tx_power);
int8_t getTXPower();
int getRSSI();
uint8_t getAddressType();
NimBLEAddress getAddress();
std::string toString();
protected:
int8_t tx_power_;
int rssi_;
uint8_t address_type_;
NimBLEAddress address_;
};
} // namespace nimble_tracker
} // namespace esphome