sbp.client.drivers.base_driver module

class sbp.client.drivers.base_driver.BaseDriver(handle)[source]

Bases: object

The BaseDriver class wraps IO sources of SBP messages and provides context management.

handle
: port
Stream of bytes to read from and write to.
close()[source]

Close wrapper.

flush()[source]

Flush wrapper.

read(size)[source]

Read wrapper.

size
: int
Number of bytes to read.
write(s)[source]

Write wrapper.

s
: bytes
Bytes to write