EnigmaIOT  0.9.8
Secure sensor and gateway platform based on ESP8266 and ESP32
Functions | Variables
EnigmaIoTUpdate Namespace Reference

Functions

def on_connect (client, userdata, flags, rc)
 
def on_message (client, userdata, msg)
 
def main ()
 

Variables

 args = None
 
bool sleepyNode = True
 
string resultTopic = "/result/#"
 
string sleepSetTopic = "/set/sleeptime"
 
string sleepResultTopic = "/result/sleeptime"
 
string otaSetTopic = "/set/ota"
 
string otaResultTopic = "/result/ota"
 
string otaOutOfSequenceError = "OTA out of sequence error"
 
string otaOK = "OTA finished OK"
 
bool otaFinished = False
 
int idx = 0
 
int OTA_OUT_OF_SEQUENCE = 4
 
int OTA_FINISHED = 6
 

Function Documentation

◆ main()

def EnigmaIoTUpdate.main ( )

Definition at line 67 of file EnigmaIoTUpdate.py.

◆ on_connect()

def EnigmaIoTUpdate.on_connect (   client,
  userdata,
  flags,
  rc 
)

Definition at line 29 of file EnigmaIoTUpdate.py.

◆ on_message()

def EnigmaIoTUpdate.on_message (   client,
  userdata,
  msg 
)

Definition at line 44 of file EnigmaIoTUpdate.py.

Variable Documentation

◆ args

EnigmaIoTUpdate.args = None

Definition at line 12 of file EnigmaIoTUpdate.py.

◆ idx

int EnigmaIoTUpdate.idx = 0

Definition at line 23 of file EnigmaIoTUpdate.py.

◆ OTA_FINISHED

int EnigmaIoTUpdate.OTA_FINISHED = 6

Definition at line 26 of file EnigmaIoTUpdate.py.

◆ OTA_OUT_OF_SEQUENCE

int EnigmaIoTUpdate.OTA_OUT_OF_SEQUENCE = 4

Definition at line 25 of file EnigmaIoTUpdate.py.

◆ otaFinished

bool EnigmaIoTUpdate.otaFinished = False

Definition at line 22 of file EnigmaIoTUpdate.py.

◆ otaOK

string EnigmaIoTUpdate.otaOK = "OTA finished OK"

Definition at line 20 of file EnigmaIoTUpdate.py.

◆ otaOutOfSequenceError

string EnigmaIoTUpdate.otaOutOfSequenceError = "OTA out of sequence error"

Definition at line 19 of file EnigmaIoTUpdate.py.

◆ otaResultTopic

string EnigmaIoTUpdate.otaResultTopic = "/result/ota"

Definition at line 18 of file EnigmaIoTUpdate.py.

◆ otaSetTopic

string EnigmaIoTUpdate.otaSetTopic = "/set/ota"

Definition at line 17 of file EnigmaIoTUpdate.py.

◆ resultTopic

string EnigmaIoTUpdate.resultTopic = "/result/#"

Definition at line 14 of file EnigmaIoTUpdate.py.

◆ sleepResultTopic

string EnigmaIoTUpdate.sleepResultTopic = "/result/sleeptime"

Definition at line 16 of file EnigmaIoTUpdate.py.

◆ sleepSetTopic

string EnigmaIoTUpdate.sleepSetTopic = "/set/sleeptime"

Definition at line 15 of file EnigmaIoTUpdate.py.

◆ sleepyNode

bool EnigmaIoTUpdate.sleepyNode = True

Definition at line 13 of file EnigmaIoTUpdate.py.