Lorawan TTGO board - 'no module named ttn'
Posted: Fri May 08, 2020 3:02 pm
Hi all,
I am trying to connect a TTGO board to the Lorawan network, using this code - https://github.com/lemariva/uPyLoRaWAN/tree/LoRaWAN
I keep getting this error when running main.py:
Line 59 in main.py:
Line 207 in sx127x.py:
ttn_config.py and ttn_au.py are both there
I seem to be missing the ttn module but cannot find it for MP, the only reference I can find is for standard Python. Does anyone have any pointers?
Hardware:
https://www.banggood.com/LILYGO-TTGO-T- ... rehouse=CN
thanks in advance,
Matt
I am trying to connect a TTGO board to the Lorawan network, using this code - https://github.com/lemariva/uPyLoRaWAN/tree/LoRaWAN
I keep getting this error when running main.py:
Code: Select all
SX version: 18
Traceback (most recent call last):
File "<stdin>", line 59, in <module>
File "sx127x.py", line 207, in __init__
ImportError: no module named 'ttn'
Code: Select all
lora = SX127x(device_spi, pins=device_pins, ttn_config=ttn_config)
Code: Select all
from ttn.ttn_au import TTN_FREQS
I seem to be missing the ttn module but cannot find it for MP, the only reference I can find is for standard Python. Does anyone have any pointers?
Hardware:
https://www.banggood.com/LILYGO-TTGO-T- ... rehouse=CN
thanks in advance,
Matt