DataChange Problem with Subscription
Hi everyone,
I am sending Data (json) from an MQTT-Broker to a Property (Type: json) called "Sensor".
This is the Data I send:
{
"Temperatur": 20,
"Helligkeit": 75
}
Then I made a Subscription to store the two values of my Data into seperate properties called: "Temperatur" and "Helligkeit". (Type: Integer)
With the parameters:
Event: DataChange
Property: Sensor
and the Code:
me.Temperatur= me.Sensor.Temperatur;
me.Helligkeit= me.Sensor.Helligkeit;
Now to my problem:
Whenever I change the Data in the Property "Sensor" by hand in the Property itself, it works and the properties "Temperatur" and "Helligkeit" are updated.
But when the MQTT-Broker changes the Data in the "Sensor" property, the two other properties doesn't change.
Why do my properties not change when the data change is done by the broker?
Thanks for any kind of help!

