File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,25 @@ extern "C" {
19
19
@param serial Needs to be an already opened stream to write to and read from.
20
20
*/
21
21
#ifdef SoftwareSerial_h
22
+ rn2xx3::rn2xx3 (SoftwareSerial& serial):
23
+ _serial(serial)
24
+ {
25
+ _serial.setTimeout (2000 );
26
+ }
27
+
22
28
rn2xx3::rn2xx3 (SoftwareSerial& serial, Stream& debugSerial):
23
29
_serial(serial),_debugSerial(debugSerial)
24
30
{
25
31
_serial.setTimeout (2000 );
26
32
}
27
33
#endif
28
34
35
+ rn2xx3::rn2xx3 (HardwareSerial& serial):
36
+ _serial(serial)
37
+ {
38
+ _serial.setTimeout (2000 );
39
+ }
40
+
29
41
rn2xx3::rn2xx3 (HardwareSerial& serial, Stream& debugSerial):
30
42
_serial(serial),_debugSerial(debugSerial)
31
43
{
Original file line number Diff line number Diff line change @@ -30,15 +30,19 @@ class rn2xx3
30
30
* A simplified constructor taking only a SoftwareSerial object.
31
31
* It is assumed that LoRa WAN will be used.
32
32
* The serial port should already be initialised when initialising this library.
33
+ * Optional Debug Serial
33
34
*/
35
+ rn2xx3 (SoftwareSerial& serial);
34
36
rn2xx3 (SoftwareSerial& serial, Stream& debugSerial);
35
37
#endif
36
38
37
39
/*
38
40
* A simplified constructor taking only a HardwareSerial object.
39
41
* It is assumed that LoRa WAN will be used.
40
42
* The serial port should already be initialised when initialising this library.
43
+ * Optional Debug Serial
41
44
*/
45
+ rn2xx3 (HardwareSerial& serial);
42
46
rn2xx3 (HardwareSerial& serial, Stream& debugSerial);
43
47
/*
44
48
* Transmit the correct sequence to the rn2483 to trigger its autobauding feature.
You can’t perform that action at this time.
0 commit comments