Has anyone gotten RadioLib.h to work with the Wireless Stick Lite V3? If so can you post your setup code?
Here’s what I have, so far it somewhat works but not very well.
#include <RadioLib.h>
// Define the LoRa module using the SX1262 module on the specified pins
SX1262 lora = new Module(8, 14, 12, 13);
void setup() {
Serial.begin(115200);
while (!Serial);
// Initialize the LoRa module
Serial.println(F(“Initializing …”));
int state = lora.begin();
if (state == RADIOLIB_ERR_NONE) {
Serial.println(F("success!"));
} else {
Serial.print(F("failed, code "));
Serial.println(state);
while (true);
}
// Set up LoRa receiver with the configuration matching your working sketch
lora.setFrequency(915.0); // Set frequency to 915 MHz
lora.setBandwidth(125.0); // Set bandwidth to 125 kHz
lora.setSpreadingFactor(7); // Set spreading factor to 7
lora.setCodingRate(1); // Set coding rate to 1
lora.setPreambleLength(8); // Set preamble length to 8
// Note: Some parameters like symbol timeout, fixed payload length, and IQ inversion might not be directly configurable in the same way with RadioLib
// Start listening for LoRa messages
lora.startReceive();
Serial.println(F(“Listening for LoRa messages…”));
}