Skip to content

Instantly share code, notes, and snippets.

View mdepa91's full-sized avatar

Marcin Depa mdepa91

View GitHub Profile
@mdepa91
mdepa91 / ble_address.h
Created February 10, 2024 12:56 — forked from ashald/ble_address.h
ESPHome-based data exchange between nodes over BLE
#include "esphome.h"
#include <BLEDevice.h>
class BleAddress : public PollingComponent, public TextSensor {
public:
// constructor
BleAddress() : PollingComponent(15000) {}
float get_setup_priority() const override { return esphome::setup_priority::LATE; }