Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
Hi everybody,
I'm begin developer thingworx, have pass data from togglebutton to cloudmqtt. Ex: value true/false => ON/OFF.
Try write subscription in thing (picture).
Hi @DN_9687801,
If you want to access the current value of temp, does it work the following example ? :
if (eventData.newValue.value == true) {
me.temp = "ON";
} else if (eventData.newValue.value == false) {
me.temp = "OFF";
}
Hope it helps,
thank but not run,
the problem is I have a mashup, want to control the switch, the switch message sent to cloudmqtt is ON / OFF but togglebutton have value is true / false. How to convert values.