Skip to content

ctron/ece2019-iot-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IoT Playground – EclipseCon Europe 2019

This repository contains the cloud side deployment we for the AMQ Online IoT setup at EclipseCon Europe 2019.

Overview

Installation

Before deploying the configuration in this repository, you need to install either AMQ Online and AMQ Streams, or EnMasse and Strimzi. You will also need to configure the IoT infrastructure of AMQ Online.

Note: It is not possible to directly deploy the YAML files. Some of the files need to be updated with the proper passwords. File which need to be updated have the suffix .in. If you fill in the information, and rename them to .yaml, then you can simply do oc apply -f deploy.

Things Network gateway

Register the gateway and set credentials:

hat device create ttn-gateway
hat cred set-password ttn-gateway gateway <password>

Things Network integration

Create a new "integration" for your Things Network account:

Type
HTTP
URL
https://iot-lorawan-adapter-enmasse-infra.apps.<my.cluster>/ttn
Authentication header:
echo "Basic $(echo -n "gateway@<k8s-ns>.iot:<password>" | base64 -w0)"

Provision a new device

Each sensor needs to be registered with Hono as well:

hat device create <device-eui> '{"via":["ttn-gateway"]}'

e.g.:

hat device create 0123456789ABCDEF '{"via":["ttn-gateway"], "defaults":{"deviceAlias": "Device #X"}}'

Also see

This repository sets up OpenShift to build a bunch of other projects:

Releases

No releases published

Packages

No packages published