Closed pekempy closed 5 years ago
Just off the top of my head I'm pretty sure you need to use the new
keyword.
Yes this appears to fix the example for me. It is probably a simple oversight or a remnant from an older architecture. I do not have the privileges required to push to this repo. If you're feeling up to it you could edit the README.md yourself and submit a pull request :)
I think it might've been a long week at work! Can't believe I missed that. thanks Created PR https://github.com/anthturner/TPLinkSmartDevices/pull/5/files
Hi,
I've added the DLL as a reference and it seems to be picking most things up ok but I've got an error that I can't use "TPLinkSmartBulb" as it's shown in the readme - see below. Also, readme may have an error as it shows "smartBulb.PoweredOff = false; //turns off the bulb" - should that be smartBulb.PoweredOn = false; ?