How to do it...

We will create a Azure function and see how to access IoT Hub real time:

  1. We will continue to use the IoT Hub IoTHubCookBook we created earlier.
  2. Select the Azure function app from new – compute:
  1. Create a new function app, FNCookBook:
  1. Navigate to the function list view, and click the + icon to add a new function.
  2. Azure function provides multiple templates; we will be selecting the language as C# and the scenario as Data Processing:
  1. As shown in the following image, input the function name, and select the IoT Hub from the ...

Get Azure IoT Development Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.