Added Melody Struct & Ajusted MQTT Subs and Deserialization

A new Melody Struct was added containing the melody's main attributes.
The MQTT Topic Subscriptions were updated to a more proper format.
Also added DEV_ID that corresponds to the device's ID or Serial Number.
Chnaged the Deserialization function to actually adjust the MelodyStruct's attributes.
Added basic play/stop functionality.
This commit is contained in:
2025-01-12 19:46:24 +02:00
parent 30e708f048
commit 540d8a14fe
9 changed files with 149 additions and 56 deletions

View File

@@ -85,5 +85,5 @@ void InitMqtt()
mqttClient.onPublish(OnMqttPublish);
mqttClient.setServer(MQTT_HOST, MQTT_PORT);
mqttClient.setCredentials(MQTT_USER, MQTT_PASS);
mqttClient.setCredentials(MQTT_USER, MQTT_PASS);
}