esphome/components/nimble_rssi/nimble_rssi_sensor.cpp

16 lines
393 B
C++
Raw Normal View History

2023-12-02 12:01:23 +03:00
#include "nimble_rssi_sensor.h"
namespace esphome
{
namespace nimble_rssi
{
static const char *const TAG = "nimble_rssi";
bool NimbleRssiSensor::update_state(nimble_tracker::NimbleTrackerEvent *tracker_event)
{
this->publish_state(tracker_event->getRSSI());
return true;
}
} // namespace nimble_rssi
} // namespace esphome