[RN2483] Add some example code for new RN2483 library

Since I have rewritten the entire library, I may also add some short example code to illustrate the new async features.
This commit is contained in:
Gijs Noorlander
2020-02-17 23:28:24 +01:00
parent da5c15258e
commit ebd0dcf7c2
5 changed files with 290 additions and 6 deletions
@@ -27,6 +27,10 @@ void rn2xx3::setAsyncMode(bool enabled) {
_rn2xx3_handler.setAsyncMode(enabled);
}
bool rn2xx3::getAsyncMode() const {
return _rn2xx3_handler.getAsyncMode();
}
bool rn2xx3::autobaud()
{
// FIXME TD-er: Must fix this, as it is not working well.
@@ -166,6 +170,11 @@ rn2xx3_handler::RN_state rn2xx3::wait_command_accepted(unsigned long timeout)
return _rn2xx3_handler.wait_command_accepted(timeout);
}
bool rn2xx3::command_finished() const
{
return _rn2xx3_handler.command_finished();
}
String rn2xx3::getRx() {
return _rn2xx3_handler.get_rx_message();
}