mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-14 19:01:12 +01:00
Introduce numeric error codes in dtu webapi
This commit is contained in:
16
include/WebApi_errors.h
Normal file
16
include/WebApi_errors.h
Normal file
@@ -0,0 +1,16 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#pragma once
|
||||
|
||||
enum WebApiError {
|
||||
GenericBase = 1000,
|
||||
GenericSuccess,
|
||||
GenericNoValueFound,
|
||||
GenericDataTooLarge,
|
||||
GenericParseError,
|
||||
GenericValueMissing,
|
||||
|
||||
DtuBase = 2000,
|
||||
DtuSerialZero,
|
||||
DtuPollZero,
|
||||
DtuInvalidPowerLevel,
|
||||
};
|
||||
Reference in New Issue
Block a user