Push BacNet object to Azure IoT
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
Connect to Azure IoT and read messages using AMQP. The massages are read from the built-in Event Hub-compatible messaging endpoint messages/events.
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}
Connect to Azure IoT and send messages using MQTT.
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}
mvn clean build
mvn clean package
java -jar target/bacnetagent-{version}.jar "{connection string}" "{number of requests to send}" "{https or amqps or mqtt or amqps_ws }"
docker/build-alpine-amd64.sh
docker/run-alpine.sh "DeviceConnectionString"
RealEstateCore example message
DEVICE_CONNECTION_STRING NUMBER_REQUESTS
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.