|
| Mqtt (SuplaDeviceClass *sdc) |
|
void | onInit () override |
|
bool | onLoadConfig () override |
|
bool | verifyConfig () override |
|
bool | isEnabled () override |
|
bool | isNetworkRestartRequested () override |
|
uint32_t | getConnectionFailTime () override |
|
bool | isConnectionError () override |
|
bool | isConnecting () override |
|
void | publish (const char *topic, const char *payload, int qos=-1, int retain=-1, bool ignorePrefix=false) |
|
void | publishInt (const char *topic, int payload, int qos=-1, int retain=-1) |
|
void | publishBool (const char *topic, bool payload, int qos=-1, int retain=-1) |
|
void | publishOnOff (const char *topic, bool payload, int qos, int retain) |
|
void | publishOpenClosed (const char *topic, bool payload, int qos, int retain) |
|
void | publishDouble (const char *topic, double payload, int qos=-1, int retain=-1, int precision=2) |
|
void | publishColor (const char *topic, uint8_t red, uint8_t green, uint8_t blue, int qos=-1, int retain=-1) |
|
void | publishChannelState (int channel) |
|
void | publishExtendedChannelState (int channel) |
|
void | subscribeChannel (int channel) |
|
void | subscribe (const char *topic, int qos=-1) |
|
bool | isUpdatePending () override |
|
bool | isRegisteredAndReady () override |
|
void | notifyConfigChange (int channelNumber) override |
|
void | sendActionTrigger (uint8_t channelNumber, uint32_t actionId) override |
|
void | sendChannelValueChanged (uint8_t channelNumber, int8_t *value, unsigned char offline, uint32_t validityTimeSec) override |
|
void | sendExtendedChannelValueChanged (uint8_t channelNumber, TSuplaChannelExtendedValue *value) override |
|
bool | processData (const char *topic, const char *payload) |
|
void | processRelayRequest (const char *topic, const char *payload, Supla::Element *element) |
|
void | processRGBWRequest (const char *topic, const char *payload, Supla::Element *element) |
|
void | processRGBRequest (const char *topic, const char *payload, Supla::Element *element) |
|
void | processDimmerRequest (const char *topic, const char *payload, Supla::Element *element) |
|
void | processHVACRequest (const char *topic, const char *payload, Supla::Element *element) |
|
void | processRollerShutterRequest (const char *topic, const char *payload, Supla::Element *element) |
|
| ProtocolLayer (SuplaDeviceClass *sdc) |
|
ProtocolLayer * | next () |
|
SuplaDeviceClass * | getSdc () |
|
void | setVerboseLog (bool value) |
|
virtual void | disconnect ()=0 |
|
virtual bool | isConfigEmpty () |
|
virtual bool | iterate (uint32_t _millis)=0 |
|
virtual void | sendRemainingTimeValue (uint8_t channelNumber, uint32_t timeMs, uint8_t state, int32_t senderId) |
|
virtual void | sendRemainingTimeValue (uint8_t channelNumber, uint32_t remainingTime, uint8_t *state, int32_t senderId, bool useSecondsInsteadOfMs) |
|
virtual void | getUserLocaltime () |
|
virtual void | sendChannelValueChanged (uint8_t channelNumber, int8_t *value, uint8_t offline, uint32_t validityTimeSec)=0 |
|
virtual void | getChannelConfig (uint8_t channelNumber, uint8_t configType=SUPLA_CONFIG_TYPE_DEFAULT) |
|
virtual bool | setChannelConfig (uint8_t channelNumber, _supla_int_t channelFunction, void *channelConfig, int size, uint8_t configType=SUPLA_CONFIG_TYPE_DEFAULT) |
|
virtual bool | setDeviceConfig (TSDS_SetDeviceConfig *deviceConfig) |
|
virtual bool | setInitialCaption (uint8_t channelNumber, const char *caption) |
|
virtual void | sendRegisterNotification (TDS_RegisterPushNotification *notification) |
|
virtual bool | sendNotification (int context, const char *title, const char *message, int soundId) |
|
virtual void | sendSubdeviceDetails (TDS_SubdeviceDetails *subdeviceDetails) |
|
virtual void | sendChannelStateResult (int32_t receiverId, uint8_t channelNo) |
|
|
void | generateClientId (char result[MQTT_CLIENTID_MAX_SIZE]) |
|
void | generateObjectId (char result[30], int channelNumber, int subId) |
|
MqttTopic | getHADiscoveryTopic (const char *sensor, char *objectId) |
|
void | publishDeviceStatus (bool onRegistration=false) |
|
void | publishHADiscovery (int channel) |
|
void | publishHADiscoveryRelay (Supla::Element *) |
|
void | publishHADiscoveryRelayImpulse (Supla::Element *) |
|
void | publishHADiscoveryThermometer (Supla::Element *) |
|
void | publishHADiscoveryHumidity (Supla::Element *) |
|
void | publishHADiscoveryActionTrigger (Supla::Element *) |
|
void | publishHADiscoveryEM (Supla::Element *) |
|
void | publishHADiscoveryRGB (Supla::Element *) |
|
void | publishHADiscoveryDimmer (Supla::Element *) |
|
void | publishHADiscoveryHVAC (Supla::Element *) |
|
void | publishHADiscoveryBinarySensor (Supla::Element *) |
|
void | publishHADiscoveryRollerShutter (Supla::Element *) |
|
void | publishHADiscoveryEMParameter (Supla::Element *element, int parameterId, const char *parameterName, const char *units, Supla::Protocol::HAStateClass stateClass, Supla::Protocol::HADeviceClass deviceClass) |
|
const char * | getActionTriggerType (uint8_t actionIdx) |
|
bool | isActionTriggerEnabled (Supla::Channel *ch, uint8_t actionIdx) |
|
virtual void | publishImp (const char *topic, const char *payload, int qos, bool retain)=0 |
|
virtual void | subscribeImp (const char *topic, int qos)=0 |
|
const char * | getStateClassStr (Supla::Protocol::HAStateClass stateClass) |
|
const char * | getDeviceClassStr (Supla::Protocol::HADeviceClass deviceClass) |
|
const char * | getRelayChannelName (int channelFunction) const |
|
const char * | getBinarySensorChannelName (int channelFunction) const |
|
bool | isPayloadOn (const char *) |
|
bool | isOpenClosedBinarySensorFunction (int channelFunction) const |
|