EnigmaIOT  0.9.8
Secure sensor and gateway platform based on ESP8266 and ESP32
Classes | Macros | Enumerations | Variables
SmartSwitchController.h File Reference
#include "WProgram.h"
#include <EnigmaIOTjsonController.h>

Go to the source code of this file.

Classes

struct  smartSwitchControllerHw_t
 
class  CONTROLLER_CLASS_NAME
 

Macros

#define CONTROLLER_CLASS_NAME   SmartSwitchController
 
#define DEFAULT_BUTTON_PIN   4
 
#define DEFAULT_RELAY_PIN   14
 
#define ON   HIGH
 
#define OFF   !ON
 

Enumerations

enum  bootRelayStatus_t { RELAY_OFF = 0, RELAY_ON = 1, SAVE_RELAY_STATUS = 2 }
 

Variables

static const char * CONTROLLER_NAME = "SamrtSwitch controller"
 

Macro Definition Documentation

◆ CONTROLLER_CLASS_NAME

#define CONTROLLER_CLASS_NAME   SmartSwitchController

Definition at line 19 of file SmartSwitchController.h.

◆ DEFAULT_BUTTON_PIN

#define DEFAULT_BUTTON_PIN   4

Definition at line 30 of file SmartSwitchController.h.

◆ DEFAULT_RELAY_PIN

#define DEFAULT_RELAY_PIN   14

Definition at line 31 of file SmartSwitchController.h.

◆ OFF

#define OFF   !ON

Definition at line 33 of file SmartSwitchController.h.

◆ ON

#define ON   HIGH

Definition at line 32 of file SmartSwitchController.h.

Enumeration Type Documentation

◆ bootRelayStatus_t

Enumerator
RELAY_OFF 
RELAY_ON 
SAVE_RELAY_STATUS 

Definition at line 35 of file SmartSwitchController.h.

Variable Documentation

◆ CONTROLLER_NAME

const char* CONTROLLER_NAME = "SamrtSwitch controller"
static

Definition at line 20 of file SmartSwitchController.h.