anthturner / TPLinkSmartDevices

C# Library for Discovering and Operating TP-Link Smart Devices (HS100/105/110, LB100/110/120/130)
Apache License 2.0
40 stars 18 forks source link

Jvalue has no definition for Model #8

Closed AndrewKlasen closed 3 years ago

AndrewKlasen commented 4 years ago

Hello, I cant operate my HS105, I get an error that:

Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: ''Newtonsoft.Json.Linq.JValue' does not contain a definition for 'model'' on line 67 of TPlinkDiscovery Capture

TheBauwssss commented 4 years ago

Could you provide a full text dump for the sys_info JSON-object and/or the contents of the message variable?

AndrewKlasen commented 4 years ago

How would I send a text dump?

AndrewKlasen commented 4 years ago

Can anyone help with this?

AndrewKlasen commented 4 years ago

Bump! Anyone have this error before?

ContactDev913 commented 3 years ago

Bump! Anyone have this error before?

Fuck yes. Dude this is preventing me from finishing my project. I hope they help us soon. I hope we get help soon.

ContactDev913 commented 3 years ago

Bump! Anyone have this error before?

Fuck yes. Dude this is preventing me from finishing my project. I hope they help us soon. I hope we get help soon.

Also, I am not having it in my code. I am having it on execution.

ContactDev913 commented 3 years ago

Bump! Anyone have this error before?

Just use this. This is based off the one your having issues with. Will fix the issues. https://www.nuget.org/packages/tplink-smartdevices/

anthturner commented 3 years ago

I unfortunately no longer use this series of devices in my smart home so I don't have anything to test against. I'm happy to take a pull request, but I see the alternative library is pretty actively maintained; I'm thrilled to see someone has made good use of this as a base and has since picked this up in the meantime, though! :)

AndrewKlasen commented 3 years ago

Bump! Anyone have this error before?

Just use this. This is based off the one your having issues with. Will fix the issues. https://www.nuget.org/packages/tplink-smartdevices/

that new API works, thank you!