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:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user