1 parent
818be244dd
commit
513cc4b7ac
2 files changed
+2
-1
No files matched your search
@@ -97,7 +97,7 @@ void LORAtoMQTT(){
|
|||||||
int codingRateDenominator = LORAdata["codingrate"]|LORA_CODING_RATE;
|
int codingRateDenominator = LORAdata["codingrate"]|LORA_CODING_RATE;
|
||||||
int preambleLength = LORAdata["preamblelength"]|LORA_PREAMBLE_LENGTH;
|
int preambleLength = LORAdata["preamblelength"]|LORA_PREAMBLE_LENGTH;
|
||||||
byte syncWord = LORAdata["syncword"]|LORA_SYNC_WORD;
|
byte syncWord = LORAdata["syncword"]|LORA_SYNC_WORD;
|
||||||
bool Crc = LORAdata["enablecrc"];
|
bool Crc = LORAdata["enablecrc"]|DEFAULT_CRC;
|
||||||
if (message) {
|
if (message) {
|
||||||
LoRa.setTxPower(txPower);
|
LoRa.setTxPower(txPower);
|
||||||
LoRa.setFrequency(frequency);
|
LoRa.setFrequency(frequency);
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ extern void MQTTtoLORA(char * topicOri, JsonObject& RFdata);
|
|||||||
#define LORA_CODING_RATE 5
|
#define LORA_CODING_RATE 5
|
||||||
#define LORA_PREAMBLE_LENGTH 8
|
#define LORA_PREAMBLE_LENGTH 8
|
||||||
#define LORA_SYNC_WORD 0x12
|
#define LORA_SYNC_WORD 0x12
|
||||||
|
#define DEFAULT_CRC true
|
||||||
|
|
||||||
#define repeatLORAwMQTT false // do we repeat a received signal by using mqtt with LORA gateway
|
#define repeatLORAwMQTT false // do we repeat a received signal by using mqtt with LORA gateway
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user