pebble / libpebble2

The library portion of the successor to libpebble

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SerialTransport failing

Oliver172 opened this issue · comments

I try to setup a serial communication between a Raspberry Pi and a Pebble-Watch. The Pi and the Pebble are connected, Serial port rfcomm0 is bound to the MAC-Adress of the Pebble but I get an Error when I try to connect them with LibPebble2:

pebble = PebbleConnection(SerialTransport("/dev/rfcomm0"))
Traceback (most recent call last):
File "<pyshell#34>", line 1, in
pebble = PebbleConnection(SerialTransport("/dev/rfcomm0"))
NameError: name 'SerialTransport' is not defined

Does anybody have an Idea what's wrong here (the code works with WebSocket and QEMU)?

Best regards

Oliver

Sorry, stupid mistake.