2015-10-01から1ヶ月間の記事一覧

Paho-MQTTでUnicodeDecodeErrorが起こった話→bytearrayを使う

File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 1693, in _send_publish upayload = payload.encode('utf-8') UnicodeDecodeError: 'ascii' codec can't decode byte 0xaf in position 0: ordinal not in range(128)なぜかペイロ…