🖱️ Combines deviceConfig and IMU service to peripherals

This commit is contained in:
Rune Harlyk
2024-07-08 21:20:06 +02:00
committed by Rune Harlyk
parent 81f69631f9
commit c400660a6f
9 changed files with 463 additions and 351 deletions
+4 -8
View File
@@ -14,16 +14,12 @@
#include <BatteryService.h>
BatteryService::BatteryService(EventSocket *socket) : _socket(socket)
{
}
BatteryService::BatteryService(Peripherals *peripherals, EventSocket *socket)
: _peripherals(peripherals), _socket(socket) {}
void BatteryService::begin()
{
}
void BatteryService::begin() {}
void BatteryService::batteryEvent()
{
void BatteryService::batteryEvent() {
JsonDocument doc;
char message[64];
doc["voltage"] = _voltage;