1 Reply Latest reply on Jan 15, 2018 3:42 PM by ravila RSS
    ravila Explorer

    how to check if a remotething is bound

    Below is a platform service that is called from an EMS to determine if a remotehing running

    on a server is bound to the platform.  I used the Thing Service under TW Composer to help create

    this code:


    var params = {

        name: ThingName /* STRING */


    // result: BOOLEAN

    var result = Resources["EntityServices"].IsRemoteThingBound(params);


    I pass in a thing string name(ThingName) and it returns result(a Boolean true/false).


    This issue is that the result value is always true, even when the thing is not bound or if

    the thing does not exist on the platform or within the EMS as a virtual thing.


    Ideas on what I'm doing wrong?