Skip to content

Broker from IP address #14

Closed
Closed
@robmarkcole

Description

@robmarkcole

Hi
I use a locally hosted mqtt broker and using paho it is fine to just provide the IP address of the broker (defaults take care of the rest). However using this lib I am getting an error:

# Set up a MiniMQTT Client
client =  MQTT(socket,
               broker = '192.168.1.64',
               port = 1883,
               network_manager = wifi)
.
.
.
MMQTTException: Invalid broker address defined.

I see the broker address must be a string. What is the recommended approach for using an IP address?
Thanks

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