Skip to content

Connectivity issue when using broker on local IP #214

Open
@peterbraden

Description

@peterbraden

When using a local broker with an IP rather than a hostname, I experienced an inability to connect (error code -1). Using a different MQTT library with exactly the same connection settings and credentials worked perfectly.

Unfortunately, even when enabling the debug settings, I didn't get any more information to help diagnose - client->connect returned 0 in connectServer, but I didn't get any deeper into diagnosis.

  • Arduino board: ESP32

  • Arduino IDE version (found in Arduino -> About Arduino menu): 2.0.0

  • List the steps to reproduce the problem below (if possible attach a sketch or
    copy the sketch code in too):

Connect to a broker on a local IP (ie. "192.168.0.12", port "1883").

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