With the code from this thread, I get a JsonReaderException when trying to retrieve a Named PlugExtra Property:
Help would be very welcome over here. Trying to add features AFTER the device has been created (features become known quite a few seconds after the device is created).
Code:
HsDevice hsDevice = null; foreach (var devRef in HomeSeerSystem.GetRefsByInterface(Id, true)) { var device = HomeSeerSystem.GetDeviceWithFeaturesByRef(devRef); try { [COLOR=#FF0000][B]// CRASHES HERE[/B][/COLOR] if (e.NodeId == device.PlugExtraData.GetNamed<string>("id")) { hsDevice = device; break; } } catch (KeyNotFoundException) { //TODO: proper exception logging } }
Help would be very welcome over here. Trying to add features AFTER the device has been created (features become known quite a few seconds after the device is created).
Comment