Code: Select all
from machine import UART
lora=UART(1, 9600)
lora.init(tx=19, rx=23) #pins are ok, as already tested with my gps device
lora
UART(1, baudrate=9600, bits=8, parity=None, stop=1, tx=19, rx=23, rts=-1, cts=-1, txbuf=256, rxbuf=256, timeout=0, timeout_char=1)
lora.write('AAFAAA') # should return module name and version as mention in datasheet
#or
lora.write(b'\xaa\xaf\xaa')
lora.read() # nothing to read also lora.any() is 0
please advice additional resources to study
https://www.nicerf.com/product_149_67.html
NiceRF Lora611AES-100mW
thanks, pav