add repeat function to LORA through mqtt
This commit is contained in:
1 parent
ae43783fd2
commit
e364b37173
2 files changed
+5
No files matched your search
@@ -76,7 +76,11 @@ void LORAtoMQTT(){
|
||||
LORAdata.set("packetSize", (int)packetSize);
|
||||
LORAdata.set("message", (char *)packet.c_str());
|
||||
pub(subjectLORAtoMQTT,LORAdata);
|
||||
if (repeatLORAwMQTT){
|
||||
trc(F("Pub LORA for rpt"));
|
||||
pub(subjectMQTTtoLORA,LORAdata);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef jsonReceiving
|
||||
|
||||
Reference in new issue
Block a user