Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

entraeiendom/_archieved_bacnet-azure-iot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bacnet-azure-iot

Push BacNet object to Azure IoT

Deamon to run on Raspberry Pi

BacnetAgentDeamon

Config

DEVICE_CONNECTION_STRING

az iot hub device-identity show-connection-string --device-id {your IoT Device name} --hub-name entra-edge-dev-hub
 {your IoT Hub name}

NUMBER_REQUESTS -> temporary

Manually read messages from IoT Hub

ReadDeviceToCloudMessages

Connect to Azure IoT and read messages using AMQP. The massages are read from the built-in Event Hub-compatible messaging endpoint messages/events.

Config

EVENT_HUB_ENDPOINT

az iot hub show --query properties.eventHubEndpoints.events.endpoint --name {your IoT Hub name}

EVENT_HUB_PATH

az iot hub show --query properties.eventHubEndpoints.events.path --name {your IoT Hub name}

IOT_SERVICE_PRIMARY_KEY

az iot hub policy show --name service --query primaryKey --hub-name {your IoT Hub name}

Manually send RealEstateCore observations and events IoT Hub

SendDeviceToCloudMessage

Connect to Azure IoT and send messages using MQTT.

Config

DEVICE_CONNECTION_STRING

az iot hub device-identity show-connection-string --device-id {your IoT Device name} --hub-name entra-edge-dev-hub
 {your IoT Hub name}

Development

Build

mvn clean build

Create bundle

mvn clean package

Verify

java -jar target/bacnetagent-{version}.jar "{connection string}" "{number of requests to send}" "{https or amqps or mqtt or amqps_ws }"

Docker

Docker on Ubuntu aka amd64 processors

docker/build-alpine-amd64.sh
docker/run-alpine.sh "DeviceConnectionString"

RealEstateCore mesages

RealEstateCore example message

Environment Variables

DEVICE_CONNECTION_STRING NUMBER_REQUESTS

Dependencies

Currently I'm using a GPLv3 dependency in bacnet4j and bacnet4jwrapper. The license in this repo is breaking those licenses. The way forward will be to either move this repo to GPLv3, or remove bacne4j dependencies.

Releases

No releases published

Packages

No packages published