![]() |
LightHub
|

Functions | |
| PubSubClient | mqttClient (ethClient) |
| void | cleanConf () |
| bool | isNotRetainingStatus () |
| void | mqttCallback (char *topic, byte *payload, unsigned int length) |
| void | printMACAddress () |
| char * | getStringFromConfig (aJsonObject *a, int i) |
| char * | getStringFromConfig (aJsonObject *a, char *name) |
| void | setupOTA (void) |
| void | setupSyslog () |
| lan_status | lanLoop () |
| void | onMQTTConnect () |
| void | ip_ready_config_loaded_connecting_to_broker () |
| void | onInitialStateInitLAN () |
| void | resetHard () |
| void | Changed (int i, DeviceAddress addr, float currentTemp) |
| void | cmdFunctionHelp (int arg_cnt, char **args) |
| void | printCurentLanConfig () |
| void | cmdFunctionKill (int arg_cnt, char **args) |
| void | cmdFunctionReboot (int arg_cnt, char **args) |
| void | applyConfig () |
| void | printConfigSummary () |
| void | cmdFunctionLoad (int arg_cnt, char **args) |
| int | loadConfigFromEEPROM () |
| void | cmdFunctionReq (int arg_cnt, char **args) |
| int | mqttConfigRequest (int arg_cnt, char **args) |
| int | mqttConfigResp (char *as) |
| void | cmdFunctionSave (int arg_cnt, char **args) |
| void | cmdFunctionIp (int arg_cnt, char **args) |
| void | cmdFunctionClearEEPROM (int arg_cnt, char **args) |
| void | cmdFunctionPwd (int arg_cnt, char **args) |
| void | cmdFunctionSetMac (int arg_cnt, char **args) |
| void | cmdFunctionGet (int arg_cnt, char **args) |
| void | printBool (bool arg) |
| void | saveFlash (short n, char *str) |
| int | loadFlash (short n, char *str, short l) |
| void | saveFlash (short n, IPAddress &ip) |
| int | ipLoadFromFlash (short n, IPAddress &ip) |
| lan_status | loadConfigFromHttp (int arg_cnt, char **args) |
| void | preTransmission () |
| void | postTransmission () |
| void | setup_main () |
| void | printFirmwareVersionAndBuildOptions () |
| void | publishStat () |
| void | setupMacAddress () |
| void | setupCmdArduino () |
| void | loop_main () |
| void | owIdle (void) |
| void | ethernetIdle (void) |
| void | modbusIdle (void) |
| void | inputLoop (void) |
| void | inputSetup (void) |
| void | pollingLoop (void) |
| bool | isThermostatWithMinArraySize (aJsonObject *item, int minimalArraySize) |
| bool | thermoDisabledOrDisconnected (aJsonObject *thermoExtensionArray, int thermoStateCommand) |
| void | thermoLoop (void) |
| short | thermoSetCurTemp (char *name, float t) |
Variables | |
| EthernetClient | ethClient |
| Streamlog debugSerial & | debugSerialPort |
| statusLED | LED (ledRED) |
| lan_status | lanStatus = INITIAL_STATE |
| const char configserver[] | PROGMEM = CONFIG_SERVER |
| char * | deviceName = NULL |
| aJsonObject * | topics = NULL |
| aJsonObject * | root = NULL |
| aJsonObject * | items = NULL |
| aJsonObject * | inputs = NULL |
| aJsonObject * | mqttArr = NULL |
| aJsonObject * | modbusObj = NULL |
| aJsonObject * | owArr = NULL |
| aJsonObject * | dmxArr = NULL |
| uint32_t | nextPollingCheck = 0 |
| uint32_t | nextInputCheck = 0 |
| uint32_t | nextLanCheckTime = 0 |
| uint32_t | nextThermostatCheck = 0 |
| uint32_t | nextSensorCheck =0 |
| uint32_t | WiFiAwaitingTime =0 |
| aJsonObject * | pollingItem = NULL |
| bool | owReady = false |
| bool | configOk = false |
| bool | configLoaded = false |
| bool | initializedListeners = false |
| int8_t | ethernetIdleCount =0 |
| int8_t | configLocked = 0 |
| ModbusMaster | node |
| byte | mac [6] |
| bool | wifiInitialized |
| int | mqttErrorRate |
| void applyConfig | ( | ) |
| void Changed | ( | int | i, |
| DeviceAddress | addr, | ||
| float | currentTemp | ||
| ) |
TODO: Refactore using Items interface
| void cleanConf | ( | ) |
| void cmdFunctionClearEEPROM | ( | int | arg_cnt, |
| char ** | args | ||
| ) |
| void cmdFunctionGet | ( | int | arg_cnt, |
| char ** | args | ||
| ) |
| void cmdFunctionHelp | ( | int | arg_cnt, |
| char ** | args | ||
| ) |
| void cmdFunctionIp | ( | int | arg_cnt, |
| char ** | args | ||
| ) |
| void cmdFunctionKill | ( | int | arg_cnt, |
| char ** | args | ||
| ) |
| void cmdFunctionLoad | ( | int | arg_cnt, |
| char ** | args | ||
| ) |
| void cmdFunctionPwd | ( | int | arg_cnt, |
| char ** | args | ||
| ) |
| void cmdFunctionReboot | ( | int | arg_cnt, |
| char ** | args | ||
| ) |
| void cmdFunctionReq | ( | int | arg_cnt, |
| char ** | args | ||
| ) |
| void cmdFunctionSave | ( | int | arg_cnt, |
| char ** | args | ||
| ) |
| void cmdFunctionSetMac | ( | int | arg_cnt, |
| char ** | args | ||
| ) |
| void ethernetIdle | ( | void | ) |
| char* getStringFromConfig | ( | aJsonObject * | a, |
| char * | name | ||
| ) |
| char* getStringFromConfig | ( | aJsonObject * | a, |
| int | i | ||
| ) |
| void inputLoop | ( | void | ) |
| void inputSetup | ( | void | ) |
| void ip_ready_config_loaded_connecting_to_broker | ( | ) |
| int ipLoadFromFlash | ( | short | n, |
| IPAddress & | ip | ||
| ) |
| bool isNotRetainingStatus | ( | ) |
| bool isThermostatWithMinArraySize | ( | aJsonObject * | item, |
| int | minimalArraySize | ||
| ) |
| lan_status lanLoop | ( | ) |
| int loadConfigFromEEPROM | ( | ) |
| lan_status loadConfigFromHttp | ( | int | arg_cnt, |
| char ** | args | ||
| ) |
| int loadFlash | ( | short | n, |
| char * | str, | ||
| short | l | ||
| ) |
| void loop_main | ( | ) |
| void modbusIdle | ( | void | ) |
| void mqttCallback | ( | char * | topic, |
| byte * | payload, | ||
| unsigned int | length | ||
| ) |
| PubSubClient mqttClient | ( | ethClient | ) |
| int mqttConfigRequest | ( | int | arg_cnt, |
| char ** | args | ||
| ) |
| int mqttConfigResp | ( | char * | as | ) |
| void onInitialStateInitLAN | ( | ) |
| void onMQTTConnect | ( | ) |
strncat(buf,item->name,sizeof(buf)); strncat(buf,",",sizeof(buf));
mqttClient.publish(topic,buf,true);
| void owIdle | ( | void | ) |
| void pollingLoop | ( | void | ) |
| void postTransmission | ( | ) |
| void preTransmission | ( | ) |
| void printBool | ( | bool | arg | ) |
| void printConfigSummary | ( | ) |
| void printCurentLanConfig | ( | ) |
| void printFirmwareVersionAndBuildOptions | ( | ) |
| void printMACAddress | ( | ) |
| void publishStat | ( | ) |
| void resetHard | ( | ) |
| void saveFlash | ( | short | n, |
| char * | str | ||
| ) |
| void saveFlash | ( | short | n, |
| IPAddress & | ip | ||
| ) |
| void setup_main | ( | ) |
| void setupCmdArduino | ( | ) |
| void setupMacAddress | ( | ) |
| void setupOTA | ( | void | ) |
| void setupSyslog | ( | ) |
| bool thermoDisabledOrDisconnected | ( | aJsonObject * | thermoExtensionArray, |
| int | thermoStateCommand | ||
| ) |
| void thermoLoop | ( | void | ) |
| short thermoSetCurTemp | ( | char * | name, |
| float | t | ||
| ) |
| bool configLoaded = false |
| int8_t configLocked = 0 |
| bool configOk = false |
| Streamlog infoSerial& debugSerialPort |
| char* deviceName = NULL |
| aJsonObject* dmxArr = NULL |
| EthernetClient ethClient |
| int8_t ethernetIdleCount =0 |
| bool initializedListeners = false |
| aJsonObject* inputs = NULL |
| aJsonObject* items = NULL |
| lan_status lanStatus = INITIAL_STATE |
| byte mac[6] |
| aJsonObject* modbusObj = NULL |
| aJsonObject* mqttArr = NULL |
| int mqttErrorRate |
| uint32_t nextInputCheck = 0 |
| uint32_t nextLanCheckTime = 0 |
| uint32_t nextPollingCheck = 0 |
| uint32_t nextSensorCheck =0 |
| uint32_t nextThermostatCheck = 0 |
| ModbusMaster node |
| aJsonObject* owArr = NULL |
| bool owReady = false |
| aJsonObject* pollingItem = NULL |
| const char verval_P [] PROGMEM = CONFIG_SERVER |
| aJsonObject* root = NULL |
| aJsonObject* topics = NULL |
| uint32_t WiFiAwaitingTime =0 |
| bool wifiInitialized |