ifw-fcf 7.1.4
Loading...
Searching...
No Matches
lampRpcErrors.hpp
Go to the documentation of this file.
1
8#ifndef FCF_DEVMGR_DEVICE_MOTOR_RPC_ERRORS_H
9#define FCF_DEVMGR_DEVICE_MOTOR_RPC_ERRORS_H
10
11#include <unordered_map>
12
13
14namespace ifw::fcf::devmgr::lamp {
15
16 enum {
24 RPC_ERR_LOCAL = -7
25 };
26
27 const std::unordered_map<short, std::string> RPC_ERRORS = {
28 {RPC_ERR_NOT_OP, "Cannot disable lamp. Not in OP state"},
29 {RPC_ERR_NOT_OP_READY, "Cannot enable lamp. Not in READY."},
30 {RPC_ERR_NOT_OP_NOTREADY, "Cannot init lamp. Not in NOTREADY or hardware FAILURE."},
31 {RPC_ERR_SWITCHING_ON , "Not allowed to turn Lamp ON while turning it OFF"},
32 {RPC_ERR_SWITCHING_OFF, "Not allowed to turn Lamp OFF while turning it ON"},
33 {RPC_ERR_COOLING, "Cannot switch lamp ON. Still cooling down."},
34 {RPC_ERR_LOCAL, "RPC calls are not allowed in Local mode"},
35 };
36
37}
38#endif // FCF_DEVMGR_DEVICE_MOTOR_RPC_ERRORS_H
Lamp class header file.
Definition lamp.hpp:18
@ RPC_ERR_NOT_OP_READY
Definition lampRpcErrors.hpp:19
@ RPC_ERR_SWITCHING_ON
Definition lampRpcErrors.hpp:21
@ RPC_SUCCESS
Definition lampRpcErrors.hpp:17
@ RPC_ERR_NOT_OP_NOTREADY
Definition lampRpcErrors.hpp:20
@ RPC_ERR_LOCAL
Definition lampRpcErrors.hpp:24
@ RPC_ERR_COOLING
Definition lampRpcErrors.hpp:23
@ RPC_ERR_SWITCHING_OFF
Definition lampRpcErrors.hpp:22
@ RPC_ERR_NOT_OP
Definition lampRpcErrors.hpp:18
const std::unordered_map< short, std::string > RPC_ERRORS
Definition lampRpcErrors.hpp:27