Introduce numeric error codes in mqtt webapi

This commit is contained in:
Thomas Basler
2022-12-23 19:46:59 +01:00
parent 7a5d8dd251
commit 8e9680f394
2 changed files with 49 additions and 0 deletions

View File

@@ -37,4 +37,21 @@ enum WebApiError {
MaintenanceBase = 6000,
MaintenanceRebootTriggered,
MaintenanceRebootCancled,
MqttBase = 7000,
MqttHostnameLength,
MqttUsernameLength,
MqttPasswordLength,
MqttTopicLength,
MqttTopicCharacter,
MqttTopicTrailingSlash,
MqttPort,
MqttCertificateLength,
MqttLwtTopicLength,
MqttLwtTopicCharacter,
MqttLwtOnlineLength,
MqttLwtOfflineLength,
MqttPublishInterval,
MqttHassTopicLength,
MqttHassTopicCharacter,
};