Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. 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.