Albin76 / Home_assistant_MQTT

Sensors and control via MQTT
0 stars 0 forks source link

Better struct #29

Closed Albin76 closed 3 years ago

Albin76 commented 3 years ago

Change the struct to include millis and two spares.

struct attribute((packed)) SENSOR_DATA { int sensor; char MQTT_sensor_topic[15]; unsigned long millis; float temp; float humidity; float pressure; float battery; int spare1; float spare2; } sensorData;

To do: