4 Replies Latest reply on Jul 25, 2017 10:47 AM by drichter RSS
    aam Newbie

    MQTT connection Issue

    I have created two MQTT things. I have connected both to a public MQBroker -say Mosquito. Some times only one "thing" connection is true, the other "thing" gets disconnected. This happens often. Is there any issue in using same broker/servername for two mqtt thing.

      • Re: MQTT connection Issue
        Ankit Gupta Ninja

        Hi Anitha Am,

         

        Is there any error received in the logs when one of the thing gets disconnected? And does the thing is in edit mode when it gets disconnected?

        • Re: MQTT connection Issue
          aam Newbie

          Yes Ankit. I am trying to set a property with a json string '[{"id": "DP2.wer.ias_Start","v": 0}]' in the data change event of  a property using subscription. When event gets triggered a lck file is generated in  Tom Cat log for the thing. Thingworx doesnt allows to update the thing. So I need tomcat to be restarted. The same property assignation works well on a button click.

           

          • Re: MQTT connection Issue
            drichter Explorer

            I have the same "Persistence already in use"-problem. I found only two very dirty way to fix that.

             

            1. Copy the thing that make problems and rename it.
            2. Delete the ValueStream and create a new one.