Skip to content

guykeller/GIM

Repository files navigation

Web App

In this exercise, we are going to create a web app, connect it to our IoT Hub and send messages from it to specific devices, which in turn will increase the counter.

Create the web app

Create a web app which will:

Your web page should look something like this: screen shot

Handle the messages on your device

To close the loop, we need to handle the messages that we receive from the cloud on our device. Upon receiving a message, you should start the same flow that the button press on your device starts. You can see examples of how to receive cloud-to-device messages on your device in this repository: https://github.com/Azure/azure-iot-sdk-c/tree/master/iothub_client/samples

Deploy the web app

After you make sure that the device actually receives the messages and handles them appropriately, it is time to deploy your Web App to azure. You can follow this interactive tutorial to have better understanding on how to deploy a web app to the Azure App Service. https://docs.microsoft.com/en-us/learn/modules/host-a-web-app-with-azure-app-service/

About

IOT Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •