sbtinstruments / aiomqtt

The idiomatic asyncio MQTT client, wrapped around paho-mqtt
https://sbtinstruments.github.io/aiomqtt
BSD 3-Clause "New" or "Revised" License
393 stars 71 forks source link

asyncio_mqtt.error.MqttConnectError: [code:3] Invalid function arguments provided. #207

Closed Hossein-Gholami closed 10 months ago

Hossein-Gholami commented 1 year ago

Hi there. I'm trying to publish a message but I get this error.

self.client_args = dict(
    hostname=self.mqtt_url,
    port=1883,
    username='server',
    password='server_dashboard',
    keepalive=60,
)

async with aiomqtt.Client(**self.client_args) as client:
    await client.publish(topic, payload)

when trying to instantiate client I get the error: 'asyncio_mqtt.error.MqttConnectError: [code:3] Invalid function arguments provided.'

version of asycio-mqtt: 0.16.1

JonathanPlasse commented 1 year ago

Hi, I cannot reproduce your error with the code you provided. Can you provide a minimum working code that reproduces the error?

empicano commented 10 months ago

Hi there 🙂 I'll close this as there have been no more responses. If this is still a problem, please feel free to reopen!