🔥 Remove json from sensor implementations

This commit is contained in:
Rune Harlyk
2026-01-03 13:03:55 +01:00
committed by nikguin04
parent fa332995f9
commit 4c6b0c316d
8 changed files with 7 additions and 143 deletions
+1 -9
View File
@@ -47,14 +47,8 @@ class Peripherals : public StatefulService<PeripheralsConfiguration> {
void scanI2C(uint8_t lower = 1, uint8_t higher = 127);
void getI2CResult(JsonVariant &root);
void getI2CResultProto(socket_message_I2CScanData &data);
void getIMUResult(JsonVariant &root);
void getI2CScanProto(socket_message_I2CScanData &data);
void getIMUProto(socket_message_IMUData &data);
void getSonarResult(JsonVariant &root);
void getSettingsProto(socket_message_PeripheralSettingsData &data);
/* IMU FUNCTIONS */
@@ -92,8 +86,6 @@ class Peripherals : public StatefulService<PeripheralsConfiguration> {
inline void endTransaction() { xSemaphoreGiveRecursive(_accessMutex); }
JsonDocument doc;
char message[MAX_ESP_IMU_SIZE];
#if FT_ENABLED(USE_MPU6050 || USE_BNO055)
IMU _imu;
#endif