Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python MQTT-SN client crashes with qos = -1 #2

Open
ralight opened this issue Mar 15, 2016 · 0 comments
Open

Python MQTT-SN client crashes with qos = -1 #2

ralight opened this issue Mar 15, 2016 · 0 comments
Labels

Comments

@ralight
Copy link
Contributor

ralight commented Mar 15, 2016

migrated from Bugzilla #463425
status UNCONFIRMED severity normal in component RSMB for 1.4
Reported in version unspecified on platform PC
Assigned to: Ian Craggs

On 2015-03-30 05:57:28 -0400, Joao Mauricio wrote:

When QoS is set to -1:

aclient.connect()
aclient.register(�jkjkjkjkj�)
aclient.publish(1, �aaaa�, -1)

Python MQTT-SN client crashes with the following error:

Traceback (most recent call last):
File �./MQTTSNregister.py�, line 33, in
aclient.publish(1, �aaaa�, -1)
File �/root/rsmb/rsmb/src/MQTTSClient/Python/MQTTSNclient.py�, line 180, in publish
self.sock.send(publish.pack())
File �/root/rsmb/rsmb/src/MQTTSClient/Python/MQTTSN.py�, line 491, in pack
buffer = self.Flags.pack()
File �/root/rsmb/rsmb/src/MQTTSClient/Python/MQTTSN.py�, line 107, in pack
(self.Will << 3) | (self.CleanSession << 2) | self.TopicIdType )
ValueError: chr() arg not in range(256)

However, using:

aclient.connect()
aclient.register(�jkjkjkjkj�)
aclient.publish(1, �aaaa�, 0)

everything works as expected.

@ralight ralight added the bug label Mar 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant