Interface MqttContentParser<T extends NamedBean>


public interface MqttContentParser<T extends NamedBean>
Interface defining a content parser, which translates to and from the MQTT payload content.
  • Method Summary

    Modifier and Type Method Description
    void beanFromPayload​(T bean, String payload, String topic)
    Load a bean's state from a received MQTT payload.
    String payloadFromBean​(T bean, int newState)
    Create the payload for a particular state transformation on a particular bean.