porrey / Dht

Use the DHT11 Temperature Sensor in C# code via a C++ Windows Runtime Component to implement a one-wire protocol on Windows 10 IoT Core and the Raspberry Pi 2.
GNU General Public License v3.0
13 stars 29 forks source link

Could not find Windows Runtime type 'Sensors.Dht.Dht22' #4

Closed RichieRogers closed 6 years ago

RichieRogers commented 7 years ago

Hi, I've installed from Nuget onto Visual Studio 2017, but I'm unable to get it to work. I get the following error: "Could not find Windows Runtime type 'Sensors.Dht.Dht22'" I've used the code example on the readme page.

Any ideas how to resolve? Rapsberry Pi 3 Visual Studio 2017

Thanks, Richie

porrey commented 7 years ago

The original NuGet package was not created correctly. It worked previously but seemed to stop working in VS2017. I updated the library in VS 2017, recompiled and created a new NuGet package. Please update the package and let me know if your problem is resolved or not.

RichieRogers commented 6 years ago

Hi, Updated and no longer get the error... well, no error with your mode - my code, on the other hand, throws some errors, but that's something I'll have to fix lol. Thanks, Richie

RichieRogers commented 6 years ago

Just to confirm that I've fixed my code as well and the device reads correctly now. Thanks, Richie