AAGAN / python-xbee

Automatically exported from code.google.com/p/python-xbee
MIT License
0 stars 0 forks source link

xbee.send raises an AttributeError: 'Serial' object has no attribute '_write' #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Using xbee.send (tried it only with tx_long_addr) raises an AttributeError: 
'Serial' object has no attribute '_write'

What version of the product are you using? On what operating system?
- python-xbee 1.9.1
- PySerial 2.5
- Windows XP

Please provide any additional information below.
Modified base.py to change 'serial._write' to 'serial.write' as below:
    def _write(self, data):
        self.serial.write(APIFrame(data).output())

.. and so far seems to work ok.
Is this a bug?

Original issue reported on code.google.com by lostjed...@gmail.com on 17 Aug 2010 at 4:33

GoogleCodeExporter commented 9 years ago
Good call; I may have been overzealous when updating the naming convention. 
I'll fix that shortly. Unfortunately my tests didn't catch it.

Original comment by pmalms...@gmail.com on 18 Aug 2010 at 2:52

GoogleCodeExporter commented 9 years ago
This has been fixed as of v1.9.2

Original comment by pmalms...@gmail.com on 19 Aug 2010 at 4:57