Hi,
I'm trying to run the CmdMessenger and PyCmdMessenger combo example from https://github.com/harmsm/PyCmdMessenger/tree/master/examples on my Teensy 3.6.
This is on Ubuntu.
I get the following error on the Python side:
Any suggestions?
I'm trying to run the CmdMessenger and PyCmdMessenger combo example from https://github.com/harmsm/PyCmdMessenger/tree/master/examples on my Teensy 3.6.
This is on Ubuntu.
I get the following error on the Python side:
Code:
$ python3 python-basic.py
Connecting to arduino on /dev/ttyACM0... done.
('my_name_is', ['Bob'], 1511212793.2456436)
Traceback (most recent call last):
File "python-basic.py", line 31, in <module>
msg = c.receive()
File "/usr/local/lib/python3.5/dist-packages/PyCmdMessenger/PyCmdMessenger.py", line 284, in receive
received.append(self._recv_methods[arg_format_list[i]](f))
File "/usr/local/lib/python3.5/dist-packages/PyCmdMessenger/PyCmdMessenger.py", line 551, in _recv_int
return struct.unpack(self.board.int_type,value)[0]
struct.error: unpack requires a bytes object of length 2
Any suggestions?