#include "options.h"
#include "streamlog.h"
#include "DallasTemperature.h"
#include <ModbusMaster.h>
#include "owTerm.h"
#include "dmx.h"
#include <Ethernet.h>
#include "Arduino.h"
#include "utils.h"
#include "textconst.h"
#include <PubSubClient.h>
#include <SPI.h>
#include <string.h>
#include "aJSON.h"
#include <Cmd.h>
#include "stdarg.h"
#include "item.h"
#include "inputs.h"
Go to the source code of this file.
|
| enum | lan_status {
INITIAL_STATE = 0,
AWAITING_ADDRESS = 1,
HAVE_IP_ADDRESS = 2,
LIBS_INITIALIZED = 3,
IP_READY_CONFIG_LOADED_CONNECTING_TO_BROKER = 4,
RETAINING_COLLECTING = 5,
OPERATION = 6,
DO_REINIT = -10,
REINIT = - 11,
DO_RECONNECT = 12,
RECONNECT = 13,
READ_RE_CONFIG = 14,
DO_NOTHING = -15
} |
| |
|
| bool | isNotRetainingStatus () |
| |
| void | mqttCallback (char *topic, byte *payload, unsigned int length) |
| |
| void | printMACAddress () |
| |
| lan_status | lanLoop () |
| |
| void | Changed (int i, DeviceAddress addr, float currentTemp) |
| |
| void | modbusIdle (void) |
| |
| void | cmdFunctionHelp (int arg_cnt, char **args) |
| |
| void | cmdFunctionKill (int arg_cnt, char **args) |
| |
| void | applyConfig () |
| |
| 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 | 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=MAXFLASHSTR) |
| |
| void | saveFlash (short n, IPAddress &ip) |
| |
| int | ipLoadFromFlash (short n, IPAddress &ip) |
| |
| lan_status | loadConfigFromHttp (int arg_cnt=0, char **args=NULL) |
| |
| void | preTransmission () |
| |
| void | postTransmission () |
| |
| void | setup_main () |
| |
| void | loop_main () |
| |
| void | owIdle (void) |
| |
| void | inputLoop (void) |
| |
| void | inputSetup (void) |
| |
| void | pollingLoop (void) |
| |
| void | thermoLoop (void) |
| |
| short | thermoSetCurTemp (char *name, float t) |
| |
| void | printConfigSummary () |
| |
| void | setupCmdArduino () |
| |
| void | setupMacAddress () |
| |
| void | printFirmwareVersionAndBuildOptions () |
| |
| bool | IsThermostat (const aJsonObject *item) |
| |
| bool | disabledDisconnected (const aJsonObject *thermoExtensionArray, int thermoLatestCommand) |
| |
| void | resetHard () |
| |
| void | onInitialStateInitLAN () |
| |
| void | ip_ready_config_loaded_connecting_to_broker () |
| |
| void | printCurentLanConfig () |
| |
◆ DHCP_RETRY_INTERVAL
| #define DHCP_RETRY_INTERVAL 60000 |
◆ lan_status
| Enumerator |
|---|
| INITIAL_STATE | |
| AWAITING_ADDRESS | |
| HAVE_IP_ADDRESS | |
| LIBS_INITIALIZED | |
| IP_READY_CONFIG_LOADED_CONNECTING_TO_BROKER | |
| RETAINING_COLLECTING | |
| OPERATION | |
| DO_REINIT | |
| REINIT | |
| DO_RECONNECT | |
| RECONNECT | |
| READ_RE_CONFIG | |
| DO_NOTHING | |
◆ applyConfig()
◆ Changed()
| void Changed |
( |
int |
i, |
|
|
DeviceAddress |
addr, |
|
|
float |
currentTemp |
|
) |
| |
TODO: Refactore using Items interface
◆ cmdFunctionGet()
| void cmdFunctionGet |
( |
int |
arg_cnt, |
|
|
char ** |
args |
|
) |
| |
◆ cmdFunctionHelp()
| void cmdFunctionHelp |
( |
int |
arg_cnt, |
|
|
char ** |
args |
|
) |
| |
◆ cmdFunctionKill()
| void cmdFunctionKill |
( |
int |
arg_cnt, |
|
|
char ** |
args |
|
) |
| |
◆ cmdFunctionLoad()
| void cmdFunctionLoad |
( |
int |
arg_cnt, |
|
|
char ** |
args |
|
) |
| |
◆ cmdFunctionReq()
| void cmdFunctionReq |
( |
int |
arg_cnt, |
|
|
char ** |
args |
|
) |
| |
◆ cmdFunctionSave()
| void cmdFunctionSave |
( |
int |
arg_cnt, |
|
|
char ** |
args |
|
) |
| |
◆ cmdFunctionSetMac()
| void cmdFunctionSetMac |
( |
int |
arg_cnt, |
|
|
char ** |
args |
|
) |
| |
◆ disabledDisconnected()
| bool disabledDisconnected |
( |
const aJsonObject * |
thermoExtensionArray, |
|
|
int |
thermoLatestCommand |
|
) |
| |
◆ inputLoop()
◆ inputSetup()
◆ ip_ready_config_loaded_connecting_to_broker()
| void ip_ready_config_loaded_connecting_to_broker |
( |
| ) |
|
◆ ipLoadFromFlash()
| int ipLoadFromFlash |
( |
short |
n, |
|
|
IPAddress & |
ip |
|
) |
| |
◆ isNotRetainingStatus()
| bool isNotRetainingStatus |
( |
| ) |
|
◆ IsThermostat()
| bool IsThermostat |
( |
const aJsonObject * |
item | ) |
|
◆ lanLoop()
◆ loadConfigFromEEPROM()
| int loadConfigFromEEPROM |
( |
| ) |
|
◆ loadConfigFromHttp()
| lan_status loadConfigFromHttp |
( |
int |
arg_cnt = 0, |
|
|
char ** |
args = NULL |
|
) |
| |
◆ loadFlash()
| int loadFlash |
( |
short |
n, |
|
|
char * |
str, |
|
|
short |
l = MAXFLASHSTR |
|
) |
| |
◆ loop_main()
◆ modbusIdle()
◆ mqttCallback()
| void mqttCallback |
( |
char * |
topic, |
|
|
byte * |
payload, |
|
|
unsigned int |
length |
|
) |
| |
◆ mqttConfigRequest()
| int mqttConfigRequest |
( |
int |
arg_cnt, |
|
|
char ** |
args |
|
) |
| |
◆ mqttConfigResp()
| int mqttConfigResp |
( |
char * |
as | ) |
|
◆ onInitialStateInitLAN()
| void onInitialStateInitLAN |
( |
| ) |
|
◆ owIdle()
◆ pollingLoop()
| void pollingLoop |
( |
void |
| ) |
|
◆ postTransmission()
| void postTransmission |
( |
| ) |
|
◆ preTransmission()
◆ printBool()
| void printBool |
( |
bool |
arg | ) |
|
◆ printConfigSummary()
| void printConfigSummary |
( |
| ) |
|
◆ printCurentLanConfig()
| void printCurentLanConfig |
( |
| ) |
|
◆ printFirmwareVersionAndBuildOptions()
| void printFirmwareVersionAndBuildOptions |
( |
| ) |
|
◆ printMACAddress()
◆ resetHard()
◆ saveFlash() [1/2]
| void saveFlash |
( |
short |
n, |
|
|
char * |
str |
|
) |
| |
◆ saveFlash() [2/2]
| void saveFlash |
( |
short |
n, |
|
|
IPAddress & |
ip |
|
) |
| |
◆ setup_main()
◆ setupCmdArduino()
◆ setupMacAddress()
◆ thermoLoop()
◆ thermoSetCurTemp()
| short thermoSetCurTemp |
( |
char * |
name, |
|
|
float |
t |
|
) |
| |
◆ debugSerial
◆ errorSerial
◆ infoSerial