(coming soon)
- Windows PC
- Visual Studio IDE (2013 onwards)
- Microsoft Azure account (free trial or DreamSpark subscription will do)
Hardware components:
- Raspberry Pi 2 (Model B)
- Micro-USB power cable
- LAN cable or RasPi Wifi dongle
- Breadboard and wires
- Temperature sensor (TMP36)
- ADC converter (MCP3208)
- Monitor screen and HDMI cable (for RasPi)
- Set up your local working space
- Set up Raspberry Pi component (TemperatureMeasurement)
- Set up SignalR web API on Microsoft Azure (SimpleIoTSignalR)
- Set up User Device Client (TemperatureClient)
- Download project folder to your local PC
- Either "Clone in Desktop" (if you have the GitHub desktop app), or "Download ZIP" (and extract the content manually)
-
Create a basic web app on your Azure portal. Log-in here
-
If successful, you should see the web page below when you navigate to the URL you specified
-
Open the project solution /SimpleIoTSignalR/SimpleIoTSignalR.sln in Visual Studio
-
Right-click on the project name SimpleIoTSignalR and select Publish..
-
Select Profile on the left panel and then Microsoft Azure Web Apps
-
You should be prompted to log-in to your Azure account
-
After successful log-in, select the web app you created earlier
-
If successful, you should see the new web page below when you navigate to the URL you specified
-
Download and set-up Windows 10 IoT Core on your Raspberry Pi 2, instructions here
-
Connect your RasPi to the Internet, either via LAN cable (wired) or Wifi dongle (wireless)
- Ensure that your RasPi and development PC are on the same network
- To check the IP address of your RasPi, you need to connect it to a monitor screen
-
Open the project solution /TemperatureMeasurement/TemperatureMeasurement.sln in Visual Studio
-
Open the file SignalRClient.cs for edit
-
Change the SignalR web API URL to the one you created earlier in Step 2, as per pictured below
-
Build the solution via the Remote Machine option, as per pictured below
-
Enter the IP address of your Raspberry Pi, select None for Authentication Mode
-
To check if the app is working correctly on your RasPi, connect it to the monitor and it should appear like this below
-
Open the project solution /TemperatureClient/TemperatureClient.sln in Visual Studio
-
Open the file SignalRClient.cs for edit
-
Change the SignalR web API URL to the one you created earlier in Step 2, as per pictured below
-
Build the solution via the Local Machine option, as per pictured below
-
A desktop app should run like this below
-
This Windows Universal App client can run on any Windows 10 devices (e.g. Windows PC, mobile, Xbox)
A big thank you to:
- Microsoft Singapore DX team for their contributions and support (Riza, Chun Siong, May, Kim)
- Other tutorial sites for their valuable resources