File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -288,6 +288,7 @@ class LoRaModem : public Stream
288
288
String fw_version;
289
289
unsigned long lastPollTime;
290
290
unsigned long pollInterval;
291
+ uint8_t downlinkPort; // Valid values are between 1 and 223
291
292
int mask_size;
292
293
uint16_t channelsMask[6 ];
293
294
String channel_mask_str;
@@ -728,6 +729,10 @@ class LoRaModem : public Stream
728
729
return true ;
729
730
}
730
731
732
+ uint8_t getDownlinkPort (){
733
+ return downlinkPort;
734
+ }
735
+
731
736
bool publicNetwork (bool publicNetwork) {
732
737
sendAT (GF (" +NWK=" ), publicNetwork);
733
738
if (waitResponse () != 1 ) {
@@ -1106,7 +1111,7 @@ class LoRaModem : public Stream
1106
1111
goto finish;
1107
1112
} else if (data.endsWith (" +RECV=" )) {
1108
1113
data = " " ;
1109
- stream.readStringUntil (' ,' ).toInt ();
1114
+ downlinkPort = stream.readStringUntil (' ,' ).toInt ();
1110
1115
length = stream.readStringUntil (' \r ' ).toInt ();
1111
1116
streamSkipUntil (' \n ' );
1112
1117
streamSkipUntil (' \n ' );
You can’t perform that action at this time.
0 commit comments