You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to implement the new version (1.0.0.31) of the TradfriLibrary.
When I want to observe updates on a device, so I need to call the ObserveDevice method on the DeviceController: public CoapObserveRelation ObserveDevice(CoapClient cc, TradfriDevice device, Action<TradfriDevice> callback, Action<CoapClient.FailReason> error = null)
You'll notice that a reference to the CoapClient is needed, which is a private member of the TradfriController instance: private CoapClient _coapClient;
Can you update the code, so the CoapClient is public visible or change the ObserveDevice method, so the CoapClient instance is not needed anymore?
Thx,
Danny
The text was updated successfully, but these errors were encountered:
Hi,
I am trying to implement the new version (1.0.0.31) of the TradfriLibrary.
When I want to observe updates on a device, so I need to call the ObserveDevice method on the DeviceController:
public CoapObserveRelation ObserveDevice(CoapClient cc, TradfriDevice device, Action<TradfriDevice> callback, Action<CoapClient.FailReason> error = null)
You'll notice that a reference to the CoapClient is needed, which is a private member of the TradfriController instance:
private CoapClient _coapClient;
Can you update the code, so the CoapClient is public visible or change the ObserveDevice method, so the CoapClient instance is not needed anymore?
Thx,
Danny
The text was updated successfully, but these errors were encountered: