adafruit / Adafruit_IO_Python

Adafruit IO Python Client Library
Other
225 stars 99 forks source link

Allow user to override keepalive #28

Closed radudragusin closed 7 years ago

radudragusin commented 8 years ago

Users cannot override keepalive argument on connect() method:

File "fridgecam.py", line 74, in mqtt_run
    aio_mqtt.connect(keepalive=60)
  File "/usr/local/lib/python3.4/dist-packages/Adafruit_IO/mqtt_client.py", line 107, in connect
    keepalive=KEEP_ALIVE_SEC, **kwargs)
TypeError: connect() got multiple values for keyword argument 'keepalive'

I will submit a pull request shortly.