public interface MqttContentParser<T extends NamedBean>
Interface defining a content parser, which translates to and from the MQTT payload content.
Load a bean's state from a received MQTT payload.
bean- The particular item receiving the payload
payload- The entire string received via MQTT
topic- MQTT topic.
IllegalArgumentException- if the payload is unparsable.
Create the payload for a particular state transformation on a particular bean.
bean- The particular item sending the payload
newState- The value to be sent to the layout; this is not yet present in the bean
- String payload to transfer via MQTT.