cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Thing view property value receive from Mqtt Broker but not store that in value stream

Re: Thing view property value receive from Mqtt Broker but not store that in value stream

Hi Dimitri,

To be honest this behavior is very strange. The last thing, which can help is changing "DataChange" option from ​Value​ to ​Always​. Maybe it can help in this case.

BR,

Adam

Re: Thing view property value receive from Mqtt Broker but not store that in value stream

Hi Adam,

I have changed in Property of Thing the value of Data Change info to Always or On but the output of QueryPropertyHistory is the same. Empty.

BR

Dimitri

Re: Thing view property value receive from Mqtt Broker but not store that in value stream

Hi Dimitri,

Did you get the solution to this problem? I am facing the same issue and can see same Error in Application Log. I don't understand myself what is the problem with it?

Neetu

Re: Thing view property value receive from Mqtt Broker but not store that in value stream

Hi there,

We are experiencing something similar

- Subscribing to a JSON input from MQTT

- On data change, parsing the JSON and setting its content to corresponding properties

(so far this works)

after this, we want to store the data into either a stream or a value stream but we get a java exception when the MQTTSubscriber Thing is trying to write the properties. Could this be a bug in the MQTT extension? Sounds like this should be pretty basic functionality.

Re: Thing view property value receive from Mqtt Broker but not store that in value stream

I think it can be related to the JSON as a data type. You can try to switch to STRING and then parse it in ThingWorx.

Make a try and let me know.

Best,

Adam

Re: Thing view property value receive from Mqtt Broker but not store that in value stream

Hello Dimitri,

did you find solution? I do not want parsing data. I have values from device in property view, but they can not store in Value stream. If I try make subscription on anydatachange for move values to other properties then I get also error in application log. Can anyone help me please?

TWX 8.1, local installed MosquitoBroker on 1883 and MqTT extensions 2.1.0

Error Handling Publish Arrived for [DemoThing/DoorStatus] : [null]

Re: Thing view property value receive from Mqtt Broker but not store that in value stream

Hi Karel,

Please, can you send me the code of subscription to take json packet from Thing MQTT Subscribe Thing and store that into properties of Target Thing.

I'm using a Thing to manage the  MQTT Subscribe service and more Thing Target  that contains a properties and value stream.

BR

Dimitri

Re: Thing view property value receive from Mqtt Broker but not store that in value stream

Thingworx has some new MQTT functionality in the 8.2 release. I think that it would be worth upgrading and testing with that version before putting too much energy into work-arounds.

Highlighted

Re: Thing view property value receive from Mqtt Broker but not store that in value stream

Hi Erik,

but release 8.2 is still not able to download. Or do you know where is it possible? Thx Karel

Re: Thing view property value receive from Mqtt Broker but not store that in value stream

Hello,

I found solution on thic community. So we can close this topic.

Get null pointer exception if property change via mqtt

Visibility Permissions when logging properties

You have to go to your ValueStream and click on ThingworxPersistenceProvider and click on View. Than you must start the AddVisibilityPermission-Service of the PersistenceProvider:


principal: Everyone

principalType: Organization


After that the ValueStream will work