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

ModusToolbox: Fails to connect to Golioth on first couple of attempts #2

Open
ncmiller opened this issue Sep 30, 2022 · 0 comments
Open

Comments

@ncmiller
Copy link
Contributor

ncmiller commented Sep 30, 2022

  • SDK Version: v0.1.0
  • Target OS/Platform: Modus Toolbox
  • Hardware Target: CY8CPROTO-062-4343W
  • Host OS: Ubuntu 22.04.1 LTS

Current Behavior

When testing in Modus Toolbox with the Golioth example project, there is a good chance that the board will fail to connect to Golioth on the first 1-3 attempts after boot:

IP Address Assigned: 192.168.1.101
Secure Sockets initialized
I (5436) golioth_main: Waiting to Golioth to connect...
I (5589) golioth_coap_client: Start CoAP session with host: coaps://coap.golioth.io
I (5594) libcoap: Setting PSK key

I (5600) golioth_coap_client: Entering CoAP I/O loop
E (15600) golioth_coap_client: Timeout: never got a response from the server
I (15600) golioth_coap_client: Ending session
E (15603) golioth_coap_client: Received nack reason: COAP_NACK_TLS_FAILED
E (15606) golioth_coap_client: Maybe your PSK-ID or PSK is incorrect?
I (16612) golioth_coap_client: Start CoAP session with host: coaps://coap.golioth.io
I (16614) libcoap: Setting PSK key

I (16620) golioth_coap_client: Entering CoAP I/O loop
I (16860) golioth_main: Golioth client connected

Expected Behavior

The board should connect on the first attempt, assuming a reliable WiFi network.

Steps to Reproduce

Nothing special, just run the example project and it will happen with good probability (over 50% chance, just reboot if it doesn't happen).

Logs, Additional Data

(Logs posted above)

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