Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. 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.