eclipse / ponte

Ponte Project
Other
362 stars 61 forks source link

Is there any way to delete resources? #53

Open lzilhao opened 6 years ago

lzilhao commented 6 years ago

The examples in the README only provide a way to publish and to subscribe to resources. Is there a way to delete resources? Or to delete subscriptions?

Thanks

chombium commented 6 years ago

You can not delete a resource. Because you wrote about unsubscribing I guess you use MQTT. Yes you can unsubscribe from a MQTT topic from your client

Example:

client.unsubscribe('/device001',function(){
console.log('UNsubscribed from topic "/device001"');
});

/device001 is the MQTT topic, and the function is a callback executed on successful execution