azure / cloudiothack Goto Github PK
View Code? Open in Web Editor NEWAn end-to-end IoT Solution Workshop
License: MIT License
An end-to-end IoT Solution Workshop
License: MIT License
Both UWP projects target 15063 (Creators Update) which is an SDK unlikely to be installed on a participants machine. Suggest updating to 17134 (1803).
Lab 2>Exercise 2>Step 2:
The image shows Replication to LRS, I think you meant GRS.
HOL 2>Exercise 5>Step 10
Unable to successful build the UWP App with below error.
C:\Users<username>.nuget\packages\microsoft.net.native.compiler\1.7.3\tools\Microsoft.NetNative.targets(697,5): error : MCG0024: MCG0024:UnresolvableTypeReference Unresolvable type reference 'System.Threading.Tasks.Task' in 'Assembly(Name=System.Runtime, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a)' found. Please check the references in your build system. A reference is either missing or an assembly is missing an expected type.
In HOL4 - Exercise 1 : Connect the Azure Function to the shared input hub, the user is instructed to add the following to the function Run method:
[EventHub("sharedouteventhub", Connection = "SharedEventHubConnection")] IAsyncCollector<string> sharedOutputMessage,
However, the AirTraffic Sim Source does not expect an EventHub with name "sharedouteventhub" to exist, it rather expects one by name of "flysim-shared-input-hub" as directed in HOL3 - Exercise 1: Create Event Hubs for input and output - Step 7 and as also indicated in the Air Traffic Sim source code.
As a result, the proper modification to the function Run method should look like:
[EventHub("flysim-shared-input-hub", Connection = "SharedEventHubConnection")] IAsyncCollector<string> sharedOutputMessage
It is very important to note that with this change to the function annotation, the function will use an entity path of "flysim-shared-input-hub" provided that an entity path is not specified in the connection string supplied to AppSettings.
This occurs because HOL3 -
Exercise 1: Create Event Hubs for input and output in step 11 implies that the proctor should copy the connectionstring for the Event Hub namespace without an appended entity path of "flysim-shared-input-hub".
i.e. this step will generate a connection string for the eventhub namespace and will not contain an entity path =>
If the proctor supplies attendees with a connectionstring that contains an entity path="flysim-shared-input-hub", the function code will work without modification and will also work when supplied to the Flysim app, but... it is important to note that the only reason this works is because the entity path in the connection string gets overwritten when the attendee follows HOL4 - Exercise 2: Connect the client app to the shared output hub to create the AirTrafficListener.
This specific line contains a side-effect which overwrites any pre-existing entity path in the connection string:
this.client = EventHubClient.CreateFromConnectionString(Common.CoreConstants.SharedAirTrafficEventHubEndpoint, Common.CoreConstants.SharedAirTrafficHubName);
This is a bit confusing, because the function code will only work without modification if a connectionstring with an entitypath="flysim-shared-input-hub" is supplied, which is not clear in the HOL3 instructions. While this fixes the function code without any modification, it only works in the Flysim app because the entitypath gets overwritten.
It is suggested to either change the function code to use the eventhub namespace connection without an entity path as the HOL3 instructions imply by using the modification to function annotation proposed earlier AND if it is decided to go this route it wouldn't be a bad idea to modify HOL2 -
Exercise 2: Deploy the Azure Function to transform data to also use a connectionstring without an entity path specified (i.e. the connectionstring to the namespace itself) by modifying the function annotation of "outeventhub" to "flysim". This will make the evenhub connection strings consistent (no more need for explicit entity path in connection strings)and works without the aid of a side-effect.
OR
Update the HOL3 instructions to very clearly indicate that the proctor should copy a connectionstring which contains an entity path of "flysim-shared-input-hub" and be aware that the only reason HOL4 -
Exercise 2: Connect the client app to the shared output hub works in the Flysim app is because "flysim-shared-input-hub" gets overwritten to "flysim-shared-output-hub" which just doesn't smell right.
Lab 2>Exercise 1>Step 5:
Correct below IoT Hub to Event Hub
Wait until "Deploying" changes to "Succeeded," indicating that the IoT Hub has been provisioned.
Can't install required node packages with Node 9.3.
Install.cmd just hangs - you have to first update NPM to 5.6, but still hangs.
VS Code tasks yield can't find bindings file for the serialport node module, thus you can't run the deploy tasks in VS Code.
Lab 1: Exercise 4: Step 12
The device_upload task fails due to following missing file. Here is the execution log:
Executing task: node 'C:\Users\aaa\azure-board-cli\out\cli.js' build .bin <
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.