sandeepmistry / arduino-LoRa

An Arduino library for sending and receiving data using LoRa radios.
MIT License
1.64k stars 628 forks source link

SoftwareSerial stops working when LoRa.h included #252

Closed heinduplessis closed 5 years ago

heinduplessis commented 5 years ago

I have a working serial application, but as soon as I simply include LoRa.h the SoftwareSerial port stops working. Any ideas what can be wong? Using ESP8266 / Arduino Pro Mini.

heinduplessis commented 5 years ago

I've tried various microcontrollers now, results seem sporadic. I'm closing this until I can make a predictable case. In the mean time, can I suggest a change in the getSignalBandwidth() function: long LoRaClass::getSignalBandwidth() - I got an error that control is passed pass the point of the last return. { long signalBandwidth = 7.8E3; byte bw = (readRegister(REG_MODEM_CONFIG_1) >> 4); switch (bw) { case 0: signalBandwidth=7.8E3; case 1: signalBandwidth=10.4E3; case 2: signalBandwidth=15.6E3; case 3: signalBandwidth=20.8E3; case 4: signalBandwidth=31.25E3; case 5: signalBandwidth=41.7E3; case 6: signalBandwidth=62.5E3; case 7: signalBandwidth=125E3; case 8: signalBandwidth=250E3; case 9: signalBandwidth=500E3; } return signalBandwidth; }