mirror of
https://github.com/letscontrolit/ESPEasy.git
synced 2026-09-14 10:35:30 +00:00
[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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user