2022-12-23 17:46:26 +01:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
enum WebApiError {
|
|
|
|
|
GenericBase = 1000,
|
|
|
|
|
GenericSuccess,
|
|
|
|
|
GenericNoValueFound,
|
2024-04-02 23:23:12 +02:00
|
|
|
GenericDataTooLarge, // not used anymore
|
2022-12-23 17:46:26 +01:00
|
|
|
GenericParseError,
|
|
|
|
|
GenericValueMissing,
|
2024-01-04 13:42:39 +01:00
|
|
|
GenericWriteFailed,
|
2024-04-04 20:43:07 +02:00
|
|
|
GenericInternalServerError,
|
2022-12-23 17:46:26 +01:00
|
|
|
|
|
|
|
|
DtuBase = 2000,
|
|
|
|
|
DtuSerialZero,
|
|
|
|
|
DtuPollZero,
|
|
|
|
|
DtuInvalidPowerLevel,
|
2023-03-30 20:46:27 +02:00
|
|
|
DtuInvalidCmtFrequency,
|
2024-01-14 00:16:43 +01:00
|
|
|
DtuInvalidCmtCountry,
|
2022-12-23 17:54:27 +01:00
|
|
|
|
2024-10-19 12:40:43 +02:00
|
|
|
FileBase = 3000,
|
|
|
|
|
FileNotDeleted,
|
|
|
|
|
FileSuccess,
|
|
|
|
|
FileDeleteSuccess,
|
2022-12-23 18:52:48 +01:00
|
|
|
|
|
|
|
|
InverterBase = 4000,
|
|
|
|
|
InverterSerialZero,
|
|
|
|
|
InverterNameLength,
|
|
|
|
|
InverterCount,
|
|
|
|
|
InverterAdded,
|
|
|
|
|
InverterInvalidId,
|
|
|
|
|
InverterInvalidMaxChannel,
|
|
|
|
|
InverterChanged,
|
|
|
|
|
InverterDeleted,
|
2023-05-29 20:17:07 +02:00
|
|
|
InverterOrdered,
|
2024-09-25 20:18:36 +02:00
|
|
|
InverterStatsResetted,
|
2022-12-23 19:16:08 +01:00
|
|
|
|
|
|
|
|
LimitBase = 5000,
|
|
|
|
|
LimitSerialZero,
|
|
|
|
|
LimitInvalidLimit,
|
|
|
|
|
LimitInvalidType,
|
|
|
|
|
LimitInvalidInverter,
|
2022-12-23 19:22:08 +01:00
|
|
|
|
|
|
|
|
MaintenanceBase = 6000,
|
|
|
|
|
MaintenanceRebootTriggered,
|
|
|
|
|
MaintenanceRebootCancled,
|
2022-12-23 19:46:59 +01:00
|
|
|
|
|
|
|
|
MqttBase = 7000,
|
|
|
|
|
MqttHostnameLength,
|
|
|
|
|
MqttUsernameLength,
|
|
|
|
|
MqttPasswordLength,
|
|
|
|
|
MqttTopicLength,
|
|
|
|
|
MqttTopicCharacter,
|
|
|
|
|
MqttTopicTrailingSlash,
|
|
|
|
|
MqttPort,
|
|
|
|
|
MqttCertificateLength,
|
|
|
|
|
MqttLwtTopicLength,
|
|
|
|
|
MqttLwtTopicCharacter,
|
|
|
|
|
MqttLwtOnlineLength,
|
|
|
|
|
MqttLwtOfflineLength,
|
|
|
|
|
MqttPublishInterval,
|
|
|
|
|
MqttHassTopicLength,
|
|
|
|
|
MqttHassTopicCharacter,
|
2023-11-19 16:17:10 +01:00
|
|
|
MqttLwtQos,
|
2024-06-29 00:28:21 +02:00
|
|
|
MqttClientIdLength,
|
2022-12-23 20:06:22 +01:00
|
|
|
|
|
|
|
|
NetworkBase = 8000,
|
|
|
|
|
NetworkIpInvalid,
|
|
|
|
|
NetworkNetmaskInvalid,
|
|
|
|
|
NetworkGatewayInvalid,
|
|
|
|
|
NetworkDns1Invalid,
|
|
|
|
|
NetworkDns2Invalid,
|
2023-04-16 11:00:17 +02:00
|
|
|
NetworkApTimeoutInvalid,
|
2024-09-14 14:41:49 +02:00
|
|
|
NetworkSyslogHostnameLength,
|
|
|
|
|
NetworkSyslogPort,
|
2022-12-23 20:24:11 +01:00
|
|
|
|
|
|
|
|
NtpBase = 9000,
|
|
|
|
|
NtpServerLength,
|
|
|
|
|
NtpTimezoneLength,
|
|
|
|
|
NtpTimezoneDescriptionLength,
|
|
|
|
|
NtpYearInvalid,
|
|
|
|
|
NtpMonthInvalid,
|
|
|
|
|
NtpDayInvalid,
|
|
|
|
|
NtpHourInvalid,
|
|
|
|
|
NtpMinuteInvalid,
|
|
|
|
|
NtpSecondInvalid,
|
|
|
|
|
NtpTimeUpdated,
|
2022-12-23 20:34:10 +01:00
|
|
|
|
|
|
|
|
SecurityBase = 10000,
|
|
|
|
|
SecurityPasswordLength,
|
|
|
|
|
SecurityAuthSuccess,
|
2022-12-23 20:41:54 +01:00
|
|
|
|
|
|
|
|
PowerBase = 11000,
|
|
|
|
|
PowerSerialZero,
|
|
|
|
|
PowerInvalidInverter,
|
2023-01-16 21:09:24 +01:00
|
|
|
|
|
|
|
|
HardwareBase = 12000,
|
|
|
|
|
HardwarePinMappingLength,
|
2024-01-14 00:16:43 +01:00
|
|
|
};
|