chore: cleanup

This commit is contained in:
2024-11-10 14:59:30 +06:00
parent 3ac9c62241
commit 39f7755477
6 changed files with 24 additions and 31 deletions

View File

@@ -21,14 +21,6 @@
#define HOMIE_STATE_DISCONNECTED "disconnected"
#define MAX_PAYLOAD_LENGTH 256
// TODO:
// Property definitions
typedef enum {
PROP_STATE, // for relay
PROP_MOISTURE, // for soil sensor
PROP_TEMPERATURE, // for soil sensor and thermometer
} device_property_t;
// Parse Homie topic format: homie/node-id/device-name/property/[set|get]
// Returns: 1 if successful, 0 if invalid format or buffer overflow
static uint8_t parse_homie_topic(const char* topic, size_t topic_len,