Hi to all, I’m trying to configure my ENVIRO+ from Pimoroni with Cayenne following this guide:
“Adding Enviro+ with Cayenne - #4 by docnjt77” but when I try to launch the SendData.py (sudo python SendData.py) I receive this error:
Traceback (most recent call last):
File “SendData.py”, line 29, in
client.begin(MQTT_USERNAME, MQTT_PASSWORD, MQTT_CLIENT_ID, loglevel=logging.INFO)
TypeError: begin() got an unexpected keyword argument ‘loglevel’
This is the line 29:
client.begin(MQTT_USERNAME, MQTT_PASSWORD, MQTT_CLIENT_ID, loglevel=logging.INFO)
and on top of file “import logging” is explained;
otherwise if I delete “loglevel=logging.INFO” from the string, the script run correcty.
(client.begin(MQTT_USERNAME, MQTT_PASSWORD, MQTT_CLIENT_ID)
Someone can help me?
thanks in advance.
Simone