ThingsBoard go client SDK supporting:
- Unencrypted and encrypted (TLS v1.2) connection via MQTT
- Device Provisioning:
- Access token generated by TB server
- Access token supplied by device
- Device supplies X.509 certificate
- Device MQTT API:
- Publish telemetry
- Publish client attributes
- Receive attribute updates
- Request attributes
- Listen and handle RPCs
- Gateway MQTT API:
- Connect/disconnect a device
- Publish telemetry
- Publish client attributes
- Receive attribute updates
- Request attributes
- Listen and handle RPCs
Examples: thingsboard-go-client-examples.
Install pre-commit hooks.
pre-commit installInstall dependencies:
go mod tidyRun tests:
go test ./... -test.shortRunning the examples with an own ThingsBoard instance provide the integration tests sometimes needed (to check with TB behavior).
I'm happy to receive PRs.