BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Types | Static Public Member Functions
BeeeOn::OpModeEnum Class Reference

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>

Inheritance diagram for BeeeOn::OpModeEnum:
BeeeOn::Enum< OpModeEnum >

Public Types

enum  Raw { TRY_ONCE, TRY_HARDER, REPEAT_ON_FAIL }
 

Static Public Member Functions

static EnumHelper< Raw >
::ValueMap & 
valueMap ()
 

Detailed Description

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.

Member Enumeration Documentation

Enumerator
TRY_HARDER 

Perform operation once.

REPEAT_ON_FAIL 

Choose more reliable strategy.


The documentation for this class was generated from the following files: