0 Replies Latest reply on Jun 6, 2017 5:06 AM by yhuang-2 RSS
    yhuang-2 Explorer

    How to update thing's properties from json by Javascript in a service



    I currently try to update my thing's properties by getting value corresponding to json key.


    I using thingworx mqtt to suscribe a topic by connecting to a broker.  And can get json data which include my properties value.


    For example:

    my properties will like this:

    And the mqtt payload I will get just like that:


    How  can I update my properties when I get such a json data?


    I am not very familiar with javascript,  can anyguys show me how to  solve such a question?

    Thanks in advance