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?
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