diff options
author | Chris Liechti <cliechti@gmx.net> | 2015-10-13 23:50:01 +0200 |
---|---|---|
committer | Chris Liechti <cliechti@gmx.net> | 2015-10-13 23:50:01 +0200 |
commit | 5665d573ec17de30e1be00a01d3444bcea91a724 (patch) | |
tree | 35059bc8d00333e876b9b180b05b6b7ca8c147eb /examples | |
parent | a1436b1378aec9c83ff11f66a6f2cd4b82ee1927 (diff) | |
download | pyserial-git-5665d573ec17de30e1be00a01d3444bcea91a724.tar.gz |
threaded: rename SerialPortWorker -> ReaderThread
Diffstat (limited to 'examples')
-rw-r--r-- | examples/at_protocol.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/at_protocol.py b/examples/at_protocol.py index d9e881b..a3ccdfd 100644 --- a/examples/at_protocol.py +++ b/examples/at_protocol.py @@ -148,7 +148,7 @@ if __name__ == '__main__': ser = serial.serial_for_url('spy://COM1', baudrate=115200, timeout=1) #~ ser = serial.Serial('COM1', baudrate=115200, timeout=1) - with serial.threaded.SerialPortWorker(ser, PAN1322) as bt_module: + with serial.threaded.ReaderThread(ser, PAN1322) as bt_module: bt_module.reset() print("reset OK") print("MAC address is", bt_module.get_mac_address()) |