Skip to content

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

Open
@ncmiller

Description

@ncmiller
  • 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions