iothub
iothub copied to clipboard
Connect to azure Iot hub with x509 certificate using go
c, _ := iotdevice.NewFromX509(iotmqtt.New(), device_id, hostname, cert)
if err := client.Connect(context.Background()); err != nil {
fmt.Println("Error connecting to iothub: ", err)
return
}
using this git get a message of not Authorized with go . I need to connect with x509 certificate and send messages. Any help appreciated. Thank you
This was fixed by using mqtt with web sockets