A repo to periodically read data from RESTful APIs and publish it on MQTT broker.
Note: To understand MQTT topic generation and its customization options please refer to the document here.
- Poll RESTful endpoints using
GET
verb. - Configurable polling interval for RESTful endpoints.
- MQTT connectivity using anonymous, username/password or SAT token in Azure IoT Operations.
-
Add Helm Repo:
helm repo add aio-extensions https://raw.githubusercontent.com/suneetnangia/http-mqtt-connector/release_management
-
Copy configuration file from the example:
-
Update configuration file with your specifics, refer to the guide here.
-
Install Helm package (appsettings.json content is stored as a K8s secret):
-
For AIO:
helm install http-mqtt-connector-01 aio-extensions/aio-http-mqtt-connector --namespace azure-iot-operations --create-namespace --set-file appsettingsContent=$pwd./<path to your>/appsettings.json
-
For non-AIO
helm install http-mqtt-connector-01 aio-extensions/http-mqtt-connector --namespace azure-iot-operations --create-namespace --set-file appsettingsContent=$pwd./<path to your>/appsettings.json
-
-
Uninstall Helm package (after evaluation):
helm uninstall http-mqtt-connector-01 -n azure-iot-operations
Please refer to the project board here.