Can’t send checkbox value when using MQTT Agent Link
{
"believerGuarantee":"RECEIPT_CONFIRMATION",
"command":"relayWrite",
"data": {
"pinNumber": 1,
"pinValue" : {{value}}
}
}
{
"type": "jsonPath",
"path": "$.data.pinValue",
"returnFirst": true,
"returnLast": true
}
Are templates used for MQTT Agent Link
Templates are supported when sending data. You need to add a Write Value parameter to the MQTT Agent Link using %VALUE% as the placeholder format. In your case, the configuration should look like this:
{
"believerGuarantee":"RECEIPT_CONFIRMATION",
"command":"relayWrite",
"data": {
"pinNumber": 1,
"pinValue" : %VALUE%
}
}
You might also need to add a Write Value Converter to the MQTT Agent Link, but that depends on the format required for the pinValue.
Thanks, it worked.
Could you please tell me why after successful sending the message appears under the checkbox: “Send failed”