iothub icon indicating copy to clipboard operation
iothub copied to clipboard

Connect to azure Iot hub with x509 certificate using go

Open ghost opened this issue 1 year ago • 1 comments

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

ghost avatar Mar 27 '24 23:03 ghost

This was fixed by using mqtt with web sockets

pedrolemos4 avatar Apr 10 '24 20:04 pedrolemos4