Giter VIP home page Giter VIP logo

azureiotthethingsnetworkintegration's Introduction

AzureIoTTheThingsNetworkIntegration

A The Things Network HTTP Integration for Azure IoT Hubs or Azure IoT Central instances

The repo has the source code for the series of blog posts written as I built this solution. There are also overviews of configuring the integration to work with Azure DPS + IoT Hubs and Azure IoT Central

  1. Infrastructure and payloads
  2. Basic JSON Deserialisation
  3. When Serialisation goes bad-payload_fields
  4. Out stupiding myself
  5. First TTN payload to the cloud
  6. Provisioning Devices on demand
  7. Queuing uplink messages
  8. Logging and the start of simplification
  9. Simplicating and securing the HTTP handler
  10. Assembling the components

Then depending on your target platform I have an overview of configuration required

The solution uses the Azure Device Provisioning Service(DPS) Group Enrollments with Symmetric Keys to "automagically" provision devices in Azure IoT Hus and Azure IoT Central instances.

Azure Device Provisiong Service

Azure Storage Explorer

The application has had some soak and stress testing

For more comple configuration scenarios the AzureIoTHubMessageV2Processor supports

For example, a TTN solution has two Applications one for Smart Building sensors the other for tracking maintenance staff vehicles. The smart building sensor data could be routed to an Azure IoT hub for a room utilisation system. The vehicle position information could be routed to an Azure IoT Central instance for displaying on a dashboard. In the second scenario the maintenance vehicles e.g. John Deere Gator could be reporting location with messages with the port id set to 10 and usage data from built in sensors on port 15 for use in a predictive maintenance system.

The key projects are a pair of Azure Functions.

TTNHttpIntegrationUplinkEndpoint which places uplink messages from TTN into a Azure Storage Queue and AzureIoTHubUplinkMessageProcessor which processes the queue provisioning devices and sending telemetry events.

Azure IoT Central Dashboard

azureiotthethingsnetworkintegration's People

Contributors

kiwibryn avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

azureiotthethingsnetworkintegration's Issues

Arrival time of payload at TTN and Azure IoT central Timestamp don't match

I was checking why a graph didn't quite look right and noticed the timestamp of the message in Azure IoT Central device "raw view" and TTN Application Device Data view were upto 4 minutes different. Need to look at the payload field used as timestamp on TelemetryEvent payloads.
AzureIoTCTimingV2
AzureIoTTTNTimingV2

Confirmed by checking the counter...

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.