azure-event-hubs-go icon indicating copy to clipboard operation
azure-event-hubs-go copied to clipboard

Not receiving messages coming from devices

Open slamgundam opened this issue 4 years ago • 1 comments

Expected Behavior

Should receiving JSON messages from devices

Actual Behavior

I used the quick start sample code that provided following link

https://github.com/Azure/azure-event-hubs-go#quick-start

and I just simply change the connStr to my actual iot-hub connection. When I started running the code it doesn't receive any of messages that coming from devices.

I already verify devices are sending message to the iot-hub by using the SetupDeviceExplorer.msi tool that azure provided

SetupDeviceExplorer.msi https://github.com/Azure/azure-iot-sdks/releases/download/2016-11-17/SetupDeviceExplorer.msi

Environment

  • OS: MacOS Catalina 10.15.5(19F101)
  • Go version: go1.14.3 darwin/amd64
  • Version of Library: github.com/Azure/azure-event-hubs-go/v3

slamgundam avatar Jun 02 '20 03:06 slamgundam

i just resolved by extended time from 20 seconds to 5 minutes.

ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)

not to sure why have extend the time to able to get the messages from devices

slamgundam avatar Jun 02 '20 06:06 slamgundam