i was wondering how to determine if the device belongs to the IoT-family, in my case a raspberry pi 2, but I dont need to know if it espacially a raspberry, just IoT device.
I tried the following code:
Code: Select all
//if(ApiInformation.IsApiContractPresent("DevicesLowLevelContract ", 1))
if (ApiInformation.IsTypePresent("Windows.Devices.Gpio"))
{
this.InitializeSensor();
return;
}
and both wont be true on my notebook, but wont be true as well on my rasbperry pi ... has someone an idea or knows how to do it right?
Thank you for all well meaned and helpful answers!