Skip to content
Discussion options

You must be logged in to vote

I tested your code and it worked perfectly. So, probably there is something wrong on my side. Indeed the mqtt module simple.py that is installed in my Pico seems to be an old version. Apparently the MQTTClient Class definition has changed since I installed the module. in my test board.

class MQTTClient:

def __init__(self, client_id, server, port=0, user=None, password=None, keepalive=0,
             ssl=False, ssl_params={}):

versus latest Github

class MQTTClient:
def init(
self,
client_id,
server,
port=0,
user=None,
password=None,
keepalive=0,
ssl=None,
):

Replies: 5 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ebolisa
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ebolisa
Comment options

@glenn20
Comment options

@ebolisa
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@AndresG25
Comment options

@ebolisa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants