Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rcarmo/azure-golang-iothub
Experimental (minimalistic) client for Azure IoT Hub
https://github.com/rcarmo/azure-golang-iothub
azure golang iot iothub
Last synced: 28 days ago
JSON representation
Experimental (minimalistic) client for Azure IoT Hub
- Host: GitHub
- URL: https://github.com/rcarmo/azure-golang-iothub
- Owner: rcarmo
- License: mit
- Created: 2017-04-02T12:16:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-14T20:20:28.000Z (over 6 years ago)
- Last Synced: 2024-06-20T13:39:48.830Z (5 months ago)
- Topics: azure, golang, iot, iothub
- Language: Go
- Size: 20.5 KB
- Stars: 5
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# azure-golang-iot-hub
Experimental (minimalistic) Azure IoT Hub client in Go (HTTPS only).
This has been tested using Go version 1.8.5 on a linux/amd64 architecture.## TODO
* [x] Device registration/enumeration
* [x] Device-to-cloud messages
* [x] HTTP connection re-use
* [x] Proper testing, built-in example reading connection string from environment variable
+ [x] Support both named and unnamed (`DeviceId`) connection strings
* [x] Refactor as library
* [ ] Implement AMQP client## HOWTO
```bash
export CONNECTION_STRING='HostName=myhub.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=SxiN78h8tdN3yQXMBhmV193ZxKWBHhmJptGcvheA3dg='
make run
```or...
```bash
export CONNECTION_STRING='HostName=myhub.azure-devices.net;DeviceId=testdevice;SharedAccessKey=SxiN78h8tdN3yQXMBhmV193ZxKWBHhmJptGcvheA3dg='
make run
```