我有以下微型 python 代码:
client = MQTTClient("youraccount/feeds/lights", "a21sigud7911d7.iot.us-west-
2.amazonaws.com", user="None", password="None" , keepalive=10000, ssl=True,
ssl_params={"certfile":"/49c84a8c4a-certificate.pem.crt",
"keyfile":"/49c84a8c4a-private.pem.key", "ca_certs":"/root.pem"})
client.settimeout = settimeout
client.connect()
但是当我从 ESP32 上的 repl 运行脚本时,我得到:
文件“umqtt/simple.py”,第 61 行,连接类型错误:给出额外的关键字参数
请提供任何帮助