Giter VIP home page Giter VIP logo

windows-iotcore-samples's Introduction

Windows 10 IoT Core Samples

This repo contains the samples that demonstrate the usage patterns for Microsoft's Windows 10 IoT Core. These code samples were created with templates available in Visual Studio, and are designed, but not limited to, run on devices that run Windows 10 IoT Core.

Note: If you are unfamiliar with Git and GitHub, you can download the entire collection as a ZIP file, but be sure to unzip everything to access shared dependencies. For more info, see Get Started.

Windows 10 IoT Core development

These samples require Visual Studio 2017 to build and Windows 10 IoT Core to execute. The setup and installation steps are different based on what hardware device you have.

Get a free copy of Visual Studio 2017 Community Edition

Additionally, to stay on top of the latest updates to Windows and the development tools, become a Windows Insider by joining the Windows Insider Program.

Become a Windows Insider

Using the samples

The easiest way to use these samples without using Git is to download the zip file containing the current version (using the following link or by clicking the "Download ZIP" button on the repo page). You can then unzip the entire archive and use the samples in Visual Studio 2017.

Download the samples ZIP

Notes:

  • Before you unzip the archive, right-click it, select Properties, and then select Unblock.
  • Be sure to unzip the entire archive, and not just individual samples. The samples all depend on the SharedContent folder in the archive.
  • In Visual Studio 2017, the platform target defaults to ARM, so be sure to change that to x64 or x86 if you want to test on a non-ARM device.

The samples use Linked files in Visual Studio to reduce duplication of common files, including sample template files and image assets. These common files are stored in the SharedContent folder at the root of the repository, and are referred to in the project files using links.

Reminder: If you unzip individual samples, they will not build due to references to other portions of the ZIP file that were not unzipped. You must unzip the entire archive if you intend to build the samples.

For more info about the programming models, platforms, languages, and APIs demonstrated in these samples, please refer to the guidance, tutorials, and reference topics provided in the Windows 10 documentation available in the Windows Developer Center. These samples are provided as-is in order to indicate or demonstrate the functionality of the programming models and feature APIs for Windows.

Contributions

Note:

  • When contributing, make sure you are contributing from the develop branch and not the master branch. Your contribution will not be accepted if your PR is coming from the master branch.

If you find a bug in any of these samples, please file it using the Feedback Hub app. You can find instructions on how to use the Feedback Hub app here.

These samples are direct from the feature teams and we welcome your input on issues and suggestions for new samples. If you would like to see new coverage or have feedback, please consider contributing. You can edit the existing content, add new content, or simply create new issues. We’ll take a look at your suggestions and will work together to incorporate them into the docs.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

See also

For additional Windows samples, see Windows on GitHub.

Samples by category

Devices, sensors and samples that involve wiring

AppServiceBlinky DigitalSign HelloBlinky
HelloBlinkyBackground NFCForIoT Potentiometer Sensor
Push Button RGB LED Accelerometer
SPI Display TempForceSensor VideoCaptureSample
I2C Compass ContainerWebSocket GpioOneWire
I2C Port Expander IoT Blockly

Samples that demonstrate Universal Windows Application features

AppServiceSharedNotepad CompanionApp ExternalProcessLauncher
ForegroundAppWithBackgroundApp HelloBlinkyBackground HelloWorld
IoT Browser IoTCore DefaultApp IoTCore MediaPlayer
IoT Onboarding Cognitive Services Companion App
OpenCV Example Serial UART Webcam App
WiFi Connector

Samples that utilize Microsoft Azure features

IoTConnector SpeechTranslator WeatherStation
HelloCloud HelloCloud.Headless ReadDeviceToCloudMessages
TpmDeviceTest WeatherStation WeatherStation.PowerBI
IoT Hub Clients Azure IoT Edge Modules

Samples that involve device drivers, services, or realtime processing

IoTCoreService NTServiceRpc SerialUART
Shift Register Memory Status Container Web Socket
Custom Device Accessor IoT Onboarding - Bluetooth (RFCOMM) Virtual Microphone Array Driver

windows-iotcore-samples's People

Contributors

a2taga2ra avatar bfjelds avatar chandde avatar christopherco avatar cooperbrenneman avatar gmileka avatar jadeiceman avatar jcoliz avatar jeanrobertjs avatar joelmartinez avatar jslobodzian avatar m-chau avatar mahmoudgsaleh avatar marksn-ms avatar microsoftopensource avatar neilsh-msft avatar oh6hay avatar paulmon avatar pulcher avatar rachitb777 avatar rutujashirali avatar saraclay avatar seanmcd-msft avatar shijiong avatar sukusuma avatar supernova-eng avatar terrywarwick avatar tiagoshibata avatar yentsanglee avatar youssef1313 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

windows-iotcore-samples's Issues

Broken link in README.md

What happened?

I was going through README.md as I was interested to learn about Windows 10 IoT Core and use it for my project.When I clicked on "Get Started" it redirected to Error 404 - "Sorry, we couldn't find that page."

What you expect to happen?

I expected to be taken to "Get Started" guide of Windows 10 IoT Core.

Reference:

In README.md under the first paragraph of Windows 10 IoT Core samples in the Note section go to line 5 : Get Started.

system.private.networking

When I try to build the serialuart project I get the error Cannot resolve Assembly: System.Private.Networking version 4.0

What is this and how do I add it or get it in the right place, I am on Win 10 64, do I even need it can I comment out something if it doesn't have anything to do with the serial communications.
Thanks
Greg Anderson

HID injection sample and article missing

Previously there were a sample and article on HID injection using the virtual hid framework, but they have either not been migrated or have been removed.

What is the reason for their removal? Could you please update them and put them back online?

Connecting to EAP-TLS network with certificates fails using WifiConnector

Hello, I am trying to use the WifiConnector sample to connect to a network that uses EAP-TLS with client and root certificates. In your readme you say that if the certificates are installed on the machine already that just clicking "Connect" will work.

"For networks that support Extensible Authentication Protocol (EAP), also known as Enterprise WiFi authentication, a password checkbox will be shown. If your enterprise network device is configured with the required certificates, you can simply click Connect."

This is not working for me through the sample app unfortunately. It currently works when i use the Windows 10 built in wireless manager, but not the sample application. Do you know what else is required in the WifiConnector app to be able to connect to these networks? How does the built in manager do it? With the native wifi APIs you could specify in the profile which certificate to use, but I see no way with the WinRT APIs to do this.

Thank you for your help.

Request a Cortana enabled IoT Core app

Will there be any samples of a Cortana enabled IoT Core app that people who are interested in this stuff can try out. we are more interested in what Cortana can do within the IoT realm.

USB Connection and disconnection handling

Hi,

I am using below code base for one of the project implementation-
https://github.com/microsoft/Windows-iotcore-samples/tree/develop/Samples/EdgeModules/SerialWin32/CS

I have to handle one scenario where in case USB cable got disconnected, how to handle that-

If i disconnect USB cable and connect it back. I didn't see any response and any exception. I need to implement the scenario if we connect the cable again it should handle that-

// Start Async Read, using overlapped structure
device.Read(inbuf, size, out numbytes, ref overlapped);
Log.WriteLineVerbose($"Async Read {i} Started");

// Block until Read finishes
device.GetOverlappedResult(ref overlapped, out numbytes, true);

Is it blocking call, that's why it is not coming out from here.

Can you please help me how to handle this case.

Thanks

Missing assets

There are some assets missing in IoTCoreDefaultApp

Error Payload file 'C:\Projects\IoTCoreDefaultApp\CS\SmartDisplay\Assets\Images\MSC17_avatars_people_023a.png' does not exist. SmartDisplay
Error Payload file 'C:\Projects\IoTCoreDefaultApp\CS\SmartDisplay\Assets\Images\music-icon.png' does not exist. SmartDisplay
Error Payload file 'C:\Projects\IoTCoreDefaultApp\CS\SmartDisplay\Assets\Images\robot-transparent.png' does not exist. SmartDisplay
Error Payload file 'C:\Projects\IoTCoreDefaultApp\CS\SmartDisplay\Assets\Fonts\MSNMDL2.ttf' does not exist. SmartDisplay
Error Payload file 'C:\Projects\IoTCoreDefaultApp\CS\SmartDisplay\Assets\Images\weather-icon.png' does not exist. SmartDisplay

Windows IoT Extensions for the UWP not available

I try to do the HelloWorld sample but while setting up Visual Studion and the project, I am not able to find or install the Windows IoT Extensions for the UWP.
In the list where I can add references I can only find the Windows moble Extensions for the UWP but not for IoT.

"OpenCVExample/CPP" sample depends on abandoned "Microsoft/opencv" repository

I'm reporting issue to not your repository but your repository will never look well till "Microsoft/OpenCV" issues will not be solved. Please look at guide by link
https://github.com/Microsoft/Windows-iotcore-samples/tree/develop/Samples/OpenCVExample/CPP
It reference other link
https://github.com/Microsoft/opencv/tree/vs2015-samples
I you documentation you say "Download Microsoft's fork of the OpenCV library". You say download because "git clone" doesn't work
microsoft/opencv#83
Then look, for example I decided to use Windows IoT and OpenCV in my production solution on x84 and ARM architecture. You should provide the sample to mix it in the best way. We are happy that you evolve Windows-iotcore-samples but you have dependency to abandoned "Microsoft/opencv" repository and attaching dependent dll files in very bed way because you add dll files only for particular architecture. You are working in cook company that has MSBuild and lots of professionals so you should provide sample with good approach of linking OpenCV.
Microsoft is one company and both repositories "Microsoft/Windows-iotcore-samples " and "Microsoft/OpenCV" should look well. Please, try to ping the responsible man for "Microsoft/OpenCV" because only you may do this.
I also have created an issue microsoft/opencv#82
But I think that their issue is also issue of your repository.
We hope you will be able to manage this. Thank you.

Deploy app , it tell me need dotnet core runtime

When use windows iot portal add an sample app, it tell thhis:

Installation Failed Failure reason: Windows cannot install package
Oryx.IoT.Led-uwp_1.0.0.0_arm__b8zv3s20rmhww because this package
depends on a framework that could not be found. Provide the framework
"Microsoft.NET.CoreRuntime.1.1" published by "CN=Microsoft
Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US",
with neutral or ARM processor architecture and minimum version
1.1.25915.0, along with this package to install. The frameworks with name "Microsoft.NET.CoreRuntime.1.1" currently installed are: {}
Failure text: Package failed updates, dependency or conflict
validation. (0x80073cf3)

I dont know how to install dotnet core framework, and I can't find an document

Connect the cathode (the longest leg) of the Tri-color LED to Pin 6 GND.

About: Windows-iotcore-samples/Samples/RGBLED/

README: "Connect the cathode (the longest leg) of the Tri-color LED to Pin 6 GND."

I'm using a Raspberry 3B+. Where does the led get its power from?

I've connected the longest leg to 3.3V (not to GND) and then it sort of works. But (example) the blue led goes ON when I use ".Low"

redpin.Write(GpioPinValue.High);
greenpin.Write(GpioPinValue.High);
bluepin.Write(GpioPinValue.Low);

I'm using this in a Windows 10 IoT Background Service and when the program is not running the RGB led shines a little bit of blue light. When I set all the pins to HIGH, when the program runs, the led turns completely off.

Controller Area Network Example for Window IOT

Hello,

We are trying to use Windows IOT in Time Critical Application using Controller Area Network(CAN/J1939). I couldn't find any example which can receive data at a minimal periodicity of 10msec and interrupts being enabled. Can any one help us out on this, We are using Interl Atom processor.

ProcessLauncher UnauthorizedAccessException

We've leveraged the capability of ProcessLauncher. Seems to work fine on some devices. On some others, we get an UnauthorizedAccessException. Details below:

System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
at MarqMetrix.InstrumentManagement.FileSystem.NetworkLocations.IoT.IoTNetworkLocationManager.AddNetworkLocation(String share, String username, String password)
at MarqMetrix.InstrumentManagement.InstrumentManager.AddNetworkLocationAsync(NetworkLocation networkLocation)
at MarqMetrix.InstrumentManagement.WebApi.ODataControllers.NetworkLocationsController.Post(Delta`1 newNetworkLocation)
at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync()
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync()
at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
at MarqMetrix.InstrumentManagement.InstrumentManagerApplicationBuilderExtensions.<>c__DisplayClass0_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context

So far we've tested on 3 different devices. Each running an 1809 version of IoT Core. 2 boxes, the process launcher works. 1 box it doesn't. Interestingly, the box that it doesn't work on is the most recently setup device (flashed with IoT Core).

In looking at the folder permissions in the location the app is installed, it appears there is a difference between the boxes this works on and the one it doesn't.

SerialUART: SerialDevice.FromIdAsync() Exception on Pi3 Internal Broadcom UART

The SerialUART sample seems to fail on a R-Pi3 using internal on board UART

The internal UART that comes with the Rasberry PI3 which is Enumerated as device ID '\?\ACPI#BCM2836#0#{86e0d1e0-8089-11d0-9ce4-08003e301f73}' using DeviceInformation.FindAllAsync()
Causes an exception when atempting to get the SerialPort via SerialDevice.FromIdAsync()

Value does not fall within the expected range.

Spent a few days trying to get this going, and then found adding this to the manifest fixed the issue.

  <Device Id="any">
    <Function Type="name:serialPort" />
  </Device>
</DeviceCapability>

It did work for about a week, and then, as per other reports of people also suggesting it was 'intermittent' I now not being able to get it working again after a further few days.

After a bit more research I found this artical that suggest on-chassis UART are not supported
https://docs.microsoft.com/en-us/uwp/api/Windows.Devices.SerialCommunication

And that they should be filtered out of FindAllAsync() enumerations.

My question is, what is the reason for this? Is it an issue with the handling of the onboard Broadcom UART? Is there plans to fix this? As after spending alot of time on this, seems a waste that the on-board UART cant be used!

Thanks!

Serial UART deleted as dupplicate?

Seems Serial UART got deleted as may have been duplicate, but seems Both SerialUART and CustomSerialDeviceAccess have both been removed? Is this intenttional?

#153

Also 'SerialUART' seems worthy of a separate project amongst the notable others, as its a very common device for most IoT projects.

using System; not recognized

Hi,

After loading your project on VS, the IDE doesn't seem to recognize the line: using System;
After redading google results, it seems that this namespace belongs to the .NET Framework.

So, do I have to update the .NET Framework on my computer even if it is preinstalled on Windows 10?

thx

Error CS7069 reference to type "ArrayList" claiming that the type was defined in "mscorlib" but could not be found

My code

/* import *.dll , and use "WG3000_COMM.Core" namespace */
System.Collections.ArrayList arrControllers = new System.Collections.ArrayList();
using (WG3000_COMM.Core.MjController controllers = new   WG3000_COMM.Core.wgMjController())
{
            controllers.SearchControlers(ref arrControllers);   // error line
 }

  • but vs underlines it error. why?
  • I used to new other project and try it, it was ok. but in "Universial Window Project" is failed..
  • how can I fix it?

SerialUART sample not working on Windows 10 Pro

There is a customer report that SerialUART sample not working on Windows 10 Pro (Version 10.0.17134). SerialDevice.FromIdAsync(dis[0].Id) always returns null. He use the following device:

dis[0].Id = "\\\\?\\FTDIBUS#VID_0403+PID_6001+A906I45PA#0000#{86e0d1e0-8089-11d0-9ce4-08003e301f73}"

But he get it working on Raspberry Pi 3B+.

So is this issue related to Windows edition Pro?

MSDN thread: https://social.msdn.microsoft.com/Forums/en-US/980892e7-2b29-4c30-904b-9d885b74c9d7/serialport-await-serialdevicefromidasyncdis0id-returns-null?forum=WindowsIoT

SerialUART: SerialDevice.FromIdAsync() Exception on Pi3 Internal Broadcom UART #150

Just tried with 17692 and updated to 10.0.17704.1000
and dont think this is fixed. Same issue with finding UART device ID "\?\ACPI#BCM2836#0#{86e0d1e0-8089-11d0-9ce4-08003e301f73}"

But SerialDevice.FromIdAsync(serialDeviceFound.Id) // ID above

still has exception

"Value does not fall within the expected range."

still have below in manifest

It's hard to accept incoming bluetooth pairing requests

"IoT Core Default App" uses the same ObservableCollection instance for keeping both incoming BT pairing requests and the BT devices located around. Every update of a BT device nearby triggers an update of the ObservableCollection instance. Updates of the ObservableCollection object remove all incoming BT pairing requests. When there are a few BT devices around, the ObservableCollection content changes too frequently. So it's getting very complicated/impossible to accept any incoming BT requests.

Add Raspberry 4B+ instructions&samples

Rasp Pi 4B had already released since i got to know Windows 10 IoT ver. PLS figure out how it works on Pi 4, silly me even dont know how to make win10 iot work on Pi4B+

"Access is denied" when scanning for wifi networks in IoT Onboarding solution.

I downloaded the IoT WiFi Onboarding solution and went through all the steps in the README. I was able to successfully follow every step until Step 4.8 in which I encountered an issue.

When the OnboardingService attempts to call WifiAdapter.ScanAsync (see line), I get the following error:

Exception thrown: 'System.UnauthorizedAccessException' in System.Private.CoreLib.ni.dll
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

The stack trace is just:

at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)

The reason I downloaded this solution is because I was getting the same error when implementing this on my own IoT Core application and this project claimed that it would get it working with a headless application. My belief is that this was never meant to work according to the docs for ScanAsync which claim that:

You should call this API from a foreground app. If it is called from a background task, you will see an "Access Denied" error message or a similar message.

The Microsoft docs for Wi-Fi onboarding list this sample as a way for connecting to a Wi-Fi network from a headless application, so I'm not sure how this sample is supposed to get around this limitation.

Information:

  • Windows v.10.0.17134.285
  • Raspberry Pi 3

When can we get source code of IoTDefaultApp 3.x? And there's a bug report.

  1. Please upload 3.x source code of IoTDefaultApp.
  2. Try to analyse this Language setting bug from source code:
    After setting language to Chinese(Simplified) in IotDefaultApplication's System setting page, Navigate to other page(in Hamburger Menu) and come back, the settings will be lost and language combo box displays nothing. What's more, With setting system language to Chinese(Simplified), Multilingual applications including Simplified Chinese language still runs like an en-us application, no zh-CN words show.
    PS:IotDefaultApplication's version is 3.1.0.0

When can we get IoTDefaultApp 3.x source code? And there is a bug in that version.

  1. Please upload 3.x source code of IoTDefaultApp.
  2. Try to analyse this Language setting bug from source code:
    After setting language to Chinese(Simplified) in IotDefaultApplication's System setting page, Navigate to other page(in Hamburger Menu) and come back, the settings will be lost and language combo box displays nothing. What's more, With setting system language to Chinese(Simplified), Multilingual applications including Simplified Chinese language still runs like an en-us application, no zh-CN words show.
    PS:IotDefaultApplication's version is 3.1.0.0

fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'ARM'

When using VS2019 Developer Command Prompt and trying to build the BusTools with

msbuild /p:Platform=ARM /p:Configuration=Release

was getting Linker error

fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'ARM'

But all projects and solution seemed to have Target set correctly for ARM.
After some time found solution was that VS2019 did not have MSVC v142 - VS 2019 C++ ARM build tools (v14.21) installed via VS installer.

Personally not C++ experience much these days, is this type of issue expected, or should there be a more clearer error message indicating the ARM build tools may not be available?
As it was not clear in either CLI or VS that the /p:Platform=ARM switch was failing and falling back to using X86

Access denied due to invalid subscription key (Face API)

I was getting an acccess denied due to invalid subscription key (Face API). But I am using the correct api key.

With the help of a colleague we found that the workaround is to add your apiroot value when calling the Face api in FacePage.xaml.cs:
FaceServiceClient f_client = new FaceServiceClient(key_face, "https://westeurope.api.cognitive.microsoft.com/face/v1.0");

SerialUART sample (CS) hides bug at SerialDevice

SerialUART sample's C# codes hide artful bug that exists at SerialDevice class. More details below.

The bug: not all SerialDevice settings are applied after corresponding properties set. The same properties should be read before reading something from the device.

MainPage.xaml.cs has lines 94..101:
// Configure serial settings serialPort.WriteTimeout = TimeSpan.FromMilliseconds(1000); serialPort.ReadTimeout = TimeSpan.FromMilliseconds(1000); serialPort.BaudRate = 9600; serialPort.Parity = SerialParity.None; serialPort.StopBits = SerialStopBitCount.One; serialPort.DataBits = 8; serialPort.Handshake = SerialHandshake.None;

Actually, this lines has no sense without next lines 103..108:
// Display configured settings status.Text = "Serial port configured successfully: "; status.Text += serialPort.BaudRate + "-"; status.Text += serialPort.DataBits + "-"; status.Text += serialPort.Parity.ToString() + "-"; status.Text += serialPort.StopBits;

So bug may be reproduced easily by commenting lines 104..108 and using non-default settings at lines 95..101. This cause that you will never get into line 264 (if (bytesRead > 0)).

We found this bug then we tried to create own project using this sample codes with BaudRate=115200.

I think that corresponding attention note should be included in the sample before till the bug fix.

P.S.
We don't see a proper way to make bug-report except this issue and Windows Platform Developer (WPDev) Feedback voice.

Link to Download Zip of samples broken link.

There seems to have been a lot of moving destinations around recently.
The Windows IoT Core (https://developer.microsoft.com/en-us/windows/iot/samples)
no longer links to samples.
The path seems to have been changed from master to develop. Is this intentional?
e.g. Original link
https://github.com/Microsoft/Windows-iotcore-samples/tree/master/Samples/HelloBlinky
Actual link.
https://github.com/Microsoft/Windows-iotcore-samples/tree/develop/Samples/HelloBlinky

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.