xreef / LoRa_E32_Series_Library

Arduino LoRa EBYTE E32 device library complete and tested with Arduino, esp8266, esp32, STM32 and Raspberry Pi Pico (rp2040 boards). sx1278/sx1276
https://www.mischianti.org
Other
357 stars 73 forks source link

How to use listen() #37

Closed fixajteknik closed 2 years ago

fixajteknik commented 2 years ago

Well I want to use 2 software serial in a example. but I cant use listen() commend it gives error. also if ı check listen the library it look empty method at https://github.com/xreef/LoRa_E32_Series_Library/blob/master/LoRa_E32.h#L298

xreef commented 2 years ago

Hi @fixajteknik, It's a required method of stream interface implementation but never used in the library. You can ignore It. Bye Renzo

fixajteknik commented 2 years ago

So how to use 2 software serial with your library

xreef commented 2 years ago

Ahh! sorry I don't answer your.

You can use some thing similar with explicit declaration like so:

SoftwareSerial mySerial(D2, D3); // Arduino RX <-- e220 TX, Arduino TX --> e220 RX
LoRa_E220 e220ttl(&mySerial, D5, D7, D6); // AUX M0 M1

SoftwareSerial mySerial2(D20, D30); // Arduino RX <-- e220 TX, Arduino TX --> e220 RX
LoRa_E220 e220ttl2(&mySerial2, D50, D70, D60); // AUX M0 M1

Bye Renzo