public final class CustomMessageMapper extends Object implements MqttMessageMapper
user(String), deviceId(String), location(String), temperature(float),
humidity(float).| Constructor and Description |
|---|
CustomMessageMapper()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Fields |
outputFields()
Gets the output fields.
|
Values |
toValues(MqttMessage message)
Converts MQTT message to an instance of
Values. |
public Values toValues(MqttMessage message)
Values.toValues in interface MqttMessageMappermessage - the message to convertpublic Fields outputFields()
outputFields in interface MqttMessageMapperCopyright © 2023 The Apache Software Foundation. All rights reserved.