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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

ConnectedThingClient unbindThing vs unbind

bmellish
5-Regular Member

ConnectedThingClient unbindThing vs unbind

In the Java SDK (6.0.0.189), when I unbind a thing, should I call unbindThing() or just unbind()?  The two methods seem to have different behaviors.

1 REPLY 1
mnarang
17-Peridot
(To:bmellish)

Hi,

I have done it with unbindThing() and able to do it .

SteamThing steamSensorThing = new SteamThing("SteamSensor" + sensorID,"Steam Sensor #" + sensorID,"SN000" + sensorID,client);

//client.bindThing(steamSensorThing);

client.unbindThing(steamSensorThing);

By bindThing() I binded it and with unbindThing() I remove the binding .After this the 'isconnected' property becomes false .For unbind() function ,it takes a string as input .I also gave it a try but don't know it's somehow throwing some exception .Will give it another try and will update you about this function .

Thanks ,

Mukul Narang

Top Tags