library for enebular edge agent board(version p1)
Diff: Eeabp1.h
- Revision:
- 3:f80f2838a956
- Parent:
- 2:d48fcae8b5bd
--- a/Eeabp1.h Sun Oct 22 01:22:24 2017 +0000 +++ b/Eeabp1.h Sun Oct 22 03:56:20 2017 +0000 @@ -103,6 +103,16 @@ int waitSerialChar(const char,uint16_t); int chkSerialCharOk(); int chkSerialCharRes(char); + + int getLoraPort(void) { + static int port = 1; + + port += 1; + if (233 < port) + port = 1; + + return port; + } }; #endif /* !defined(EEAPP1_H) */