When trying to send data using this tutorial, I get the error: unorderable types: str() <= int().
To me it seems like a version problem (Python 2 vs 3); first if tls: when tls=None. Second, if I change '8883' to 8883, the publish.single function runs, but with the repeating error message [WinError 10054].
Trying to use clicarriots, I run into problems with the data type: TypeError: POST data should be bytes or an iterable of bytes. It cannot be of type str.
I hope to get it solved during next week, or I have to find another platform for my IT high school class doing a Raspberry Pi project.