|
|
void | fillStateData (TDSC_ChannelState *channelState) const |
| |
|
void | addClock (Supla::Clock *clock) |
| |
|
Supla::Clock * | getClock () const |
| |
|
bool | begin (const char GUID[SUPLA_GUID_SIZE], const char *Server, const char *email, const char authkey[SUPLA_AUTHKEY_SIZE], unsigned char protoVersion=23) |
| |
|
bool | begin (unsigned char protoVersion=23) |
| |
|
void | setName (const char *Name) |
| |
|
void | setGUID (const char GUID[SUPLA_GUID_SIZE]) |
| |
|
void | setAuthKey (const char authkey[SUPLA_AUTHKEY_SIZE]) |
| |
|
void | setEmail (const char *email) |
| |
|
void | setServer (const char *server) |
| |
|
void | setSwVersion (const char *) |
| |
|
void | setManufacturerId (int16_t) |
| |
|
void | setProductId (int16_t) |
| |
|
void | addFlags (int32_t) |
| |
|
void | removeFlags (int32_t) |
| |
|
bool | isSleepingDeviceEnabled () const |
| |
|
int | generateHostname (char *, int macSize=6) |
| |
|
void | onTimer (void) |
| |
|
void | onFastTimer (void) |
| |
|
void | iterate (void) |
| |
|
void | status (int status, const __FlashStringHelper *msg, bool alwaysLog=false) |
| |
|
void | setStatusFuncImpl (_impl_arduino_status impl_arduino_status) |
| |
|
void | setServerPort (int value) |
| |
|
int | handleCalcfgFromServer (TSD_DeviceCalCfgRequest *request, TDS_DeviceCalCfgResult *result=nullptr) |
| |
|
void | enterConfigMode () |
| |
|
void | leaveConfigModeWithoutRestart () |
| |
|
void | enterNormalMode () |
| |
|
void | scheduleSoftRestart (int timeout=0) |
| |
|
void | scheduleProtocolsRestart (int timeout=0) |
| |
|
void | softRestart () |
| |
|
void | saveStateToStorage () |
| |
|
void | restartCfgModeTimeout (bool requireRestart) |
| |
|
void | resetToFactorySettings () |
| |
|
void | disableLocalActionsIfNeeded () |
| |
|
void | requestCfgMode () |
| |
|
int8_t | getCurrentStatus () const |
| |
|
bool | loadDeviceConfig () |
| |
|
bool | prepareLastStateLog () |
| |
|
char * | getLastStateLog () |
| |
|
void | addLastStateLog (const char *) |
| |
|
void | enableLastStateLog () |
| |
|
void | disableLastStateLog () |
| |
|
void | setRsaPublicKeyPtr (const uint8_t *ptr) |
| |
|
const uint8_t * | getRsaPublicKey () const |
| |
|
enum Supla::DeviceMode | getDeviceMode () const |
| |
|
void | setActivityTimeout (_supla_int_t newActivityTimeout) |
| |
|
uint32_t | getActivityTimeout () |
| |
| void | handleAction (int event, int action) override |
| |
|
void | setAutomaticResetOnConnectionProblem (unsigned int timeSec) |
| |
|
void | setLastStateLogger (Supla::Device::LastStateLogger *logger) |
| |
|
void | setSuplaCACert (const char *) |
| |
|
void | setSupla3rdPartyCACert (const char *) |
| |
|
const char * | getSuplaCACert () const |
| |
|
Supla::Protocol::SuplaSrpc * | getSrpcLayer () |
| |
|
void | enableNetwork () |
| |
|
void | disableNetwork () |
| |
|
bool | getStorageInitResult () |
| |
|
bool | isSleepingAllowed () |
| |
| void | allowWorkInOfflineMode (int mode=1) |
| | Allows device to work in offline mode DEPRECATED: use setInitialMode() instead.
|
| |
| void | setInitialMode (Supla::InitialMode mode) |
| | Sets the initial mode of the device.
|
| |
| Supla::InitialMode | getInitialMode () const |
| | Returns the initial mode of the device @See Supla::InitialMode.
|
| |
| bool | isRemoteDeviceConfigEnabled () const |
| | Checks if remote device configuration is enabled.
|
| |
| void | setShowUptimeInChannelState (bool value) |
| | Sets if "uptime" should be added to channel state (i)
|
| |
| void | setProtoVerboseLog (bool value) |
| | Enables/disables verbose logging of Supla protocol.
|
| |
|
Supla::Mutex * | getTimerAccessMutex () |
| |
|
void | setChannelConflictResolver (Supla::Device::ChannelConflictResolver *resolver) |
| |
|
void | setSubdevicePairingHandler (Supla::Device::SubdevicePairingHandler *handler) |
| |
| void | setMacLengthInHostname (int value) |
| | Sets the byte length of MAC address in hostname and Wi-Fi Soft AP name.
|
| |
| void | setCustomHostnamePrefix (const char *prefix) |
| | Sets custom hostname prefix to be used in hostname and Wi-Fi Soft AP name.
|
| |
|
void | setStatusLed (Supla::Device::StatusLed *led) |
| |
| void | setLeaveCfgModeAfterInactivityMin (int valueMin) |
| | Sets the leave configuration mode after inactivity timeout in minutes.
|
| |
| bool | isLeaveCfgModeAfterInactivityEnabled () const |
| | Checks if leave configuration mode after inactivity is enabled.
|
| |
| bool | isAutomaticFirmwareUpdateEnabled () const |
| | Checks if automatic firmware update is supported.
|
| |
| void | setAutomaticFirmwareUpdateSupported (bool value) |
| | Sets automatic firmware update support.
|
| |
|
void | identifyStatusLed () |
| | Triggers "identify" action on status LED.
|
| |
| void | testStepStatusLed (int times) |
| | Triggers special status LED flashing sequence based on provided "times".
|
| |
| void | addSecurityLog (uint32_t source, const char *log) const |
| | Adds security log.
|
| |
| void | addSecurityLog (Supla::SecurityLogSource source, const char *log) const |
| | Adds security log.
|
| |
| void | setSecurityLogger (Supla::Device::SecurityLogger *logger) |
| | Sets instance of Supla::Device::SecurityLogger.
|
| |
| bool | isSecurityLogEnabled () const |
| | Checks if security log is enabled.
|
| |
Public Member Functions inherited from Supla::ActionHandler |
|
virtual void | activateAction (int action) |
| |
|
virtual bool | deleteClient () |
| |
|
virtual ActionHandler * | getRealClient () |
| |
|
virtual void | addAction (uint16_t action, ActionHandler &client, uint16_t event, bool alwaysEnabled=false) |
| |
|
virtual void | addAction (uint16_t action, ActionHandler *client, uint16_t event, bool alwaysEnabled=false) |
| |
|
virtual void | runAction (uint16_t event) const |
| |
|
virtual bool | isEventAlreadyUsed (uint16_t event, bool ignoreAlwaysEnabled) |
| |
|
virtual ActionHandlerClient * | getHandlerForFirstClient (uint16_t event) |
| |
|
virtual ActionHandlerClient * | getHandlerForClient (ActionHandler *client, uint16_t event) |
| |
|
virtual void | disableOtherClients (const ActionHandler &client, uint16_t event) |
| |
|
virtual void | enableOtherClients (const ActionHandler &client, uint16_t event) |
| |
|
virtual void | disableOtherClients (const ActionHandler *client, uint16_t event) |
| |
|
virtual void | enableOtherClients (const ActionHandler *client, uint16_t event) |
| |
|
virtual void | disableAction (int32_t action, ActionHandler *client, int32_t event) |
| |
|
virtual void | enableAction (int32_t action, ActionHandler *client, int32_t event) |
| |
|
virtual bool | disableActionsInConfigMode () |
| |
|
|
uint32_t | networkIsNotReadyCounter = 0 |
| |
|
uint32_t | deviceRestartTimeoutTimestamp = 0 |
| |
|
uint32_t | protocolRestartTimeoutTimestamp = 0 |
| |
|
uint32_t | waitForIterate = 0 |
| |
|
uint32_t | lastIterateTime = 0 |
| |
|
uint32_t | enterConfigModeTimestamp = 0 |
| |
|
uint32_t | forceRestartTimeMs = 0 |
| |
|
uint32_t | protocolRestartTimeMs = 0 |
| |
|
uint32_t | resetOnConnectionFailTimeoutSec = 0 |
| |
|
uint32_t | lastSwUpdateCheckTimestamp = 0 |
| |
|
enum Supla::DeviceMode | deviceMode = Supla::DEVICE_MODE_NOT_SET |
| |
|
bool | triggerResetToFactorySettings = false |
| |
|
bool | triggerStartLocalWebServer = false |
| |
|
bool | triggerStopLocalWebServer = false |
| |
|
bool | triggerCheckSwUpdate = false |
| |
|
bool | requestNetworkLayerRestart = false |
| |
|
bool | isNetworkSetupOk = false |
| |
|
bool | skipNetwork = false |
| |
|
bool | storageInitResult = false |
| |
|
bool | showUptimeInChannelState = true |
| |
|
bool | lastStateLogEnabled = true |
| |
|
bool | initializationDone = false |
| |
|
bool | goToConfigModeAsap = false |
| |
|
bool | triggerSwUpdateIfAvailable = false |
| |
|
uint8_t | leaveCfgModeAfterInactivityMin = 5 |
| |
|
uint8_t | macLengthInHostname = 6 |
| |
|
int8_t | currentStatus = STATUS_UNKNOWN |
| |
|
Supla::InitialMode | initialMode = Supla::InitialMode::StartInNotConfiguredMode |
| |
|
Supla::CfgModeState | cfgModeState = Supla::CfgModeState::NotSet |
| |
|
Supla::ConfigurationState | configurationState = {} |
| |
|
Supla::Protocol::SuplaSrpc * | srpcLayer = nullptr |
| |
|
Supla::Device::SwUpdate * | swUpdate = nullptr |
| |
|
Supla::Element * | iterateConnectedPtr = nullptr |
| |
|
Supla::Device::LastStateLogger * | lastStateLogger = nullptr |
| |
|
Supla::Mutex * | timerAccessMutex = nullptr |
| |
|
Supla::Device::SubdevicePairingHandler * | subdevicePairingHandler = nullptr |
| |
|
Supla::Device::StatusLed * | statusLed = nullptr |
| |
|
Supla::Device::SecurityLogger * | securityLogger = nullptr |
| |
|
const uint8_t * | rsaPublicKey = nullptr |
| |
|
char * | customHostnamePrefix = nullptr |
| |
|
_impl_arduino_status | impl_arduino_status = nullptr |
| |