Implement get_interface
This commit is contained in:
parent
1ccea2bf9c
commit
80bfd414ec
5 changed files with 44 additions and 23 deletions
|
@ -1,7 +1,10 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# from ..lib.feasycom_ble import BTLEUart
|
||||
from . import BaseSource
|
||||
from ..lib.feasycom_ble import BTLEUart
|
||||
from . import BaseInterface
|
||||
|
||||
|
||||
class FeasycomSource(BaseSource):
|
||||
class FeasycomInterface(BTLEUart, BaseInterface):
|
||||
pass
|
||||
|
||||
|
||||
# BTLEUart(mac=MAC, timeout=5)
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# import serial
|
||||
import serial
|
||||
|
||||
from . import BaseSource
|
||||
from . import BaseInterface
|
||||
|
||||
|
||||
class SerialSource(BaseSource):
|
||||
class SerialInterface(serial.Serial, BaseInterface):
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue