Experimental (minimalistic) client for Azure IoT Hub
Go Makefile
Switch branches/tags
Nothing to show
Clone or download
rcarmo Merge pull request #3 from tappoz/master
Allow compilation on Linux, unmarshal the JSON device to extract the primary key
Latest commit 32720df Apr 15, 2018
Permalink
Failed to load latest commit information.
iothub
.gitignore Integration test coverage: Create, Retrieve, Delete a new device Jan 31, 2018
LICENSE
Makefile
README.md
main.go

README.md

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

  • Device registration/enumeration
  • Device-to-cloud messages
  • HTTP connection re-use
  • Proper testing, built-in example reading connection string from environment variable
  • Support both named and unnamed (DeviceId) connection strings
  • Refactor as library
  • Implement AMQP client

HOWTO

export CONNECTION_STRING='HostName=myhub.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=SxiN78h8tdN3yQXMBhmV193ZxKWBHhmJptGcvheA3dg='
make run

or...

export CONNECTION_STRING='HostName=myhub.azure-devices.net;DeviceId=testdevice;SharedAccessKey=SxiN78h8tdN3yQXMBhmV193ZxKWBHhmJptGcvheA3dg='
make run