Closed hjgode closed 3 years ago
When using simple2, you have to handle communication errors yourself.
It is difficult for me, based on the information provided, to say why this problem occurs.
The library was tested with mosquitto's mqtt server. For this server, communication was problem-free and multiple topics could be subscribed to. Check with this server to see if communication is correct.
I am using mosquitto server.
For me the error seems to be that simple2 is looking for the pid in the received packet and does not find the pid in the list of rcvd pids.
Anyway, I am fine in using robust2.
On Thu, Aug 19, 2021 at 8:33 AM Wojciech Banaś @.***> wrote:
When using simple2, you have to handle communication errors yourself.
It is difficult for me, based on the information provided, to say why this problem occurs.
The library was tested with mosquitto's mqtt server. For this server, communication was problem-free and multiple topics could be subscribed to. Check with this server to see if communication is correct.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/fizista/micropython-umqtt.simple2/issues/8#issuecomment-901648020, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZVWBJCJ6IJF5FQUYNYK63T5SQSLANCNFSM5CMJDXSA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .
I have following code on a m5stack Core2.
As soon as a publish of second topic is received, there is an error in line c.wait_msg() for ' if pid in self.rcv_pids:' and raises a MQTTException(5) inside def check_msg(self):... As long as only published topics with first topic are received, there is no error.
I worked around this using your robust2 MQTTClient.
I a second subscription not supported with simple2?