Skip to content

Commit fd2aabb

Browse files
committed
Add missing keywords, update API in README
1 parent 6e4b343 commit fd2aabb

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ TheThingsNetwork class features the following [public methods](https://github.co
2525

2626
```C++
2727
public:
28+
int downlinkPort;
29+
byte downlink[64];
2830
void init(Stream& modemStream, Stream& debugStream);
2931
void reset(bool adr = true, int sf = DEFAULT_SF, int fsb = DEFAULT_FSB);
3032
bool personalize(const byte devAddr[4], const byte nwkSKey[16], const byte appSKey[16]);
3133
bool join(const byte appEui[8], const byte appKey[16]);
32-
void sendBytes(const byte* buffer, int length, int port = 1, bool confirm = false);
33-
void sendString(String message, int port = 1, bool confirm = false);
34+
int sendBytes(const byte* buffer, int length, int port = 1, bool confirm = false);
35+
int sendString(String message, int port = 1, bool confirm = false);
3436
void showStatus();
3537
```
3638

keywords.txt

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ TheThingsNetwork KEYWORD1
1212
# Methods and Functions (KEYWORD2)
1313
#######################################
1414

15+
debugPrintLn KEYWORD2
16+
debugPrintLn KEYWORD2
17+
18+
HEX_CHAR_TO_NIBBLE KEYWORD2
19+
HEX_PAIR_TO_BYTE KEYWORD2
20+
21+
downlinkPort KEYWORD2
22+
downlink KEYWORD2
23+
1524
init KEYWORD2
1625
reset KEYWORD2
1726
personalize KEYWORD2
@@ -20,9 +29,6 @@ sendBytes KEYWORD2
2029
sendString KEYWORD2
2130
showStatus KEYWORD2
2231

23-
debugPrintLn KEYWORD2
24-
debugPrintLn KEYWORD2
25-
2632
#######################################
2733
# Constants (LITERAL1)
2834
#######################################
@@ -31,5 +37,7 @@ DEFAULT_WAIT_TIME LITERAL1
3137
DEFAULT_FSB LITERAL1
3238
DEFAULT_FSB LITERAL1
3339

40+
ADR_SUPPORTED LITERAL1
41+
3442
PWRIDX_868 LITERAL1
3543
PWRIDX_915 LITERAL1

0 commit comments

Comments
 (0)