BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
OpModeEnum defines a mode of operation in the context of failure. Usually an operation (e.g. with a remote device) can fail. If it fails, we report an error. However, in certain situations, we might want to choose a different strategy of performing that operation (e.g. quickly send multiple request to increase probablity of success). Another possibility is to try again on failure until a timeout occurs. More...
#include <OpMode.h>
Public Types | |
enum | Raw { TRY_ONCE, TRY_HARDER, REPEAT_ON_FAIL } |
Static Public Member Functions | |
static EnumHelper< Raw > ::ValueMap & | valueMap () |
OpModeEnum defines a mode of operation in the context of failure. Usually an operation (e.g. with a remote device) can fail. If it fails, we report an error. However, in certain situations, we might want to choose a different strategy of performing that operation (e.g. quickly send multiple request to increase probablity of success). Another possibility is to try again on failure until a timeout occurs.