Hello there (I'm new on the forum), I'm having a bad time with the Lora Module right there...
I desperately tries to configure them but nothing works.
Here is the configuration code :
#include "Arduino.h"
#include "LoRa_E32.h"
#define LoRa_E32_DEBUG
LoRa_E32 e32ttl(2, 3);
void setup() {
// put your setup code here, to run once:
Serial.begin(19200);
e32ttl.begin();
}
void loop() {
// put your main code here, to run repeatedly:
char frame[59] = "test\n";
ResponseStatus rs = e32ttl.sendMessage(frame);
Serial.println(frame);
Serial.println(rs.getResponseDescription());
}
Here is the receiver code:
#include "Arduino.h"
#include "LoRa_E32.h"
#define LoRa_E32_DEBUG
LoRa_E32 e32ttl(2, 3);
void setup() {
// put your setup code here, to run once:
e32ttl.begin();
Serial.begin(19200);
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println(millis());
ResponseContainer rs = e32ttl.receiveMessageUntil('\n');
Serial.println(rs.data);
Serial.println(rs.status.getResponseDescription());
}
If the sender is active the receiver stop without displaying the message:<
If the sender is inactive it continues without stopping:
I don't understand...
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.