Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not receiving messages coming from devices #178

Open
slamgundam opened this issue Jun 2, 2020 · 1 comment
Open

Not receiving messages coming from devices #178

slamgundam opened this issue Jun 2, 2020 · 1 comment

Comments

@slamgundam
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant