serialposix.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:microperi 作者: c0d3st0rm 项目源码 文件源码
def number_to_device(self, port_number):
        sys.stderr.write("""\
don't know how to number ttys on this system.
! Use an explicit path (eg /dev/ttyS1) or send this information to
! the author of this module:

sys.platform = %r
os.name = %r
serialposix.py version = %s

also add the device name of the serial port and where the
counting starts for the first serial port.
e.g. 'first serial port: /dev/ttyS0'
and with a bit luck you can get this module running...
""" % (sys.platform, os.name, serial.VERSION))
        raise NotImplementedError('no number-to-device mapping defined on this platform')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号