amenzhinsky / iothub

Azure IoT Hub SDK for Golang
MIT License
53 stars 58 forks source link

Connect to azure Iot hub with x509 certificate using go #86

Open Sampath280 opened 8 months ago

Sampath280 commented 8 months ago
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

pedrolemos4 commented 7 months ago

This was fixed by using mqtt with web sockets