ampledata / aprs

Python APRS Module
https://github.com/ampledata/aprs
Other
95 stars 53 forks source link

Not accepting str as user #22

Open ampledata opened 6 years ago

ampledata commented 6 years ago
>>> a = aprs.TCP('W2GMD', 'xxx')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/gba/.pyenv/versions/undef.net-3.6.2/lib/python3.6/site-packages/aprs-7.0.0rc3-py3.6.egg/aprs/classes.py", line 273, in __init__
    aprs_filter = aprs_filter or b'/'.join([b'p', user])  # Unicode
TypeError: sequence item 1: expected a bytes-like object, str found
askpatrickw commented 6 years ago

I hit this as well on python 3.6.5. You wrote this, so I'm sure you know, but for others if you're following along the README use this:

CALL = b"YOURCALL"
APRS_IS = b"Your_APRSIS_Code"
a = aprs.TC(CALL, APRS_IS)
a.start()
a.receive(callback=p)