Azure / azure-event-hubs-go

Golang client library for Azure Event Hubs https://azure.microsoft.com/services/event-hubs
MIT License
88 stars 69 forks source link

Not receiving messages coming from devices #178

Open slamgundam opened 4 years ago

slamgundam commented 4 years ago

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

slamgundam commented 4 years ago

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