[BT] Add BM2 voltage (#1495)
* [BT] Add BM2 voltage Voltage retrieval through a BLE connection, frequency of the BLE connection is defined by `intervalcnct` * Add doc Credits to https://github.com/KrystianD/bm2-battery-monitor
This commit is contained in:
1 parent
1cdf6558a9
commit
f35baa9da0
5 files changed
+112
-5
No files matched your search
@@ -41,6 +41,15 @@ public:
|
||||
void publishData() override;
|
||||
};
|
||||
|
||||
class BM2_connect : public zBLEConnect {
|
||||
//std::vector<uint8_t> m_data;
|
||||
void notifyCB(NimBLERemoteCharacteristic* pChar, uint8_t* pData, size_t length, bool isNotify);
|
||||
|
||||
public:
|
||||
BM2_connect(NimBLEAddress& addr) : zBLEConnect(addr) {}
|
||||
void publishData() override;
|
||||
};
|
||||
|
||||
class GENERIC_connect : public zBLEConnect {
|
||||
std::vector<uint8_t> m_data;
|
||||
|
||||
|
||||
Reference in new issue
Block a user