Publish message to update single channel field
channels/<channelID>/publish/fields/field<fieldnumber>/<apikey>
channels/
publishes messages to the topic to update a channel field. Replace
<channelID>
/publish/fields/field<fieldnumber>
/<apikey>
<channelID>
with the channel ID,
<fieldnumber>
with field number that you want to update, and
<apikey>
with the write API key of the channel. To learn more about
configuring your channel, see Channel Properties. Use this method to update
a single field in a channel. To update multiple parameters simultaneously, see Payload Parameters.
Set the PUBLISH
messages
to a QoS
value of
0
.
Set the connection RETAIN
flag to 0
.
Set the connection
CleanSession
flag to
1
.
To learn more about these flags, see MQTT v3.1.1 specification.
Data to be entered in the specified field of a channel, specified as a
string. For example: 100
Configure MQTT.fx
to send a PUBLISH
message to update a channel field.
Replace <channelID>
with the channel ID and
<apikey>
with the Write API Key of the channel. This
PUBLISH
message publishes a value of 45
to
field1
of the specified channel.
Publish to a Channel Feed | Subscribe to a Channel Feed | Subscribe to a Channel Field Feed