ifw-fcf 7.1.4
Loading...
Searching...
No Matches
actuatorRpcErrors.hpp
Go to the documentation of this file.
1
8#ifndef FCF_DEVMGR_DEVICE_ACTUATOR_RPC_ERRORS_H
9#define FCF_DEVMGR_DEVICE_ACTUATOR_RPC_ERRORS_H
10
11#include <unordered_map>
12
13namespace ifw::fcf {
14 namespace devmgr {
15 namespace actuator {
16
17 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 device. Not in OP state"},
29 {RPC_ERR_NOT_OP_READY, "Cannot enable device. Not in READY."},
30 {RPC_ERR_NOT_OP_NOTREADY, "Cannot init device. Not in NOTREADY or hardware FAILURE."},
31 {RPC_ERR_SWITCHING_ON , "Not allowed to switch ON while switching OFF"},
32 {RPC_ERR_SWITCHING_OFF, "Not allowed to switch OFF while switching ON"},
33 {RPC_ERR_LOCAL, "RPC calls are not allowed in Local mode"},
34 };
35
36}
37}
38}
39
40#endif // FCF_DEVMGR_DEVICE_ACTUATOR_RPC_ERRORS_H
@ RPC_ERR_SWITCHING_OFF
Definition actuatorRpcErrors.hpp:23
@ RPC_ERR_NOT_OP_NOTREADY
Definition actuatorRpcErrors.hpp:21
@ RPC_SUCCESS
Definition actuatorRpcErrors.hpp:18
@ RPC_ERR_NOT_OP
Definition actuatorRpcErrors.hpp:19
@ RPC_ERR_SWITCHING_ON
Definition actuatorRpcErrors.hpp:22
@ RPC_ERR_LOCAL
Definition actuatorRpcErrors.hpp:24
@ RPC_ERR_NOT_OP_READY
Definition actuatorRpcErrors.hpp:20
const std::unordered_map< short, std::string > RPC_ERRORS
Definition actuatorRpcErrors.hpp:27
ActionsEnable class source file.
Definition actionMgr.cpp:28