sbp.client.drivers.file_driver module

class sbp.client.drivers.file_driver.FileDriver(fd)[source]

Bases: sbp.client.drivers.base_driver.BaseDriver

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

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

Read wrapper.

size
: int
Number of bytes to read.