Method | Description | |
---|---|---|
Close ( ) : void | ||
ConnectAsync ( ) : System.Threading.Tasks.Task |
Connect to the Pebble.
|
|
PebbleProtocol ( IBluetoothConnection connection ) : System |
Create a new Pebble connection
|
|
SendMessage ( ushort endpoint, byte payload ) : void |
Send a message to the connected Pebble. The payload should at most be 2048 bytes large.
|
Method | Description | |
---|---|---|
ReadAndProcessBytes ( ) : bool |
Read from the serial line if a useful chunk is present. In this case a "useful chunk" means that either the payload size and endpoint of a new message or the complete payload of a message are present. |
|
ReadBytes ( int count ) : byte[] | ||
SerialPortDataReceived ( object sender, |
public ConnectAsync ( ) : System.Threading.Tasks.Task | ||
return | System.Threading.Tasks.Task |
public PebbleProtocol ( IBluetoothConnection connection ) : System | ||
connection | IBluetoothConnection | |
return | System |
public SendMessage ( ushort endpoint, byte payload ) : void | ||
endpoint | ushort | |
payload | byte | |
return | void |