Skip to content

Commit

Permalink
Demo: add test notification test feature
Browse files Browse the repository at this point in the history
  • Loading branch information
RuffaloLavoisier committed Nov 21, 2024
1 parent 40b4c53 commit 6da612c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/services/OswServiceTaskConsole.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ void OswServiceTaskConsole::runPrompt() {
NotifierClient notify("osw.console");
notify.showToast(toast);
#endif
// Test
} else if (this->m_inputBuffer.find("notify ") == 0 and this->m_inputBuffer.length() > 7) {
auto value = this->m_inputBuffer.substr(7);
OswUI::getInstance()->showNotification(value, false);
} else if (this->m_inputBuffer == "time") {
Serial.println(OswHal::getInstance()->getUTCTime());
} else if (this->m_inputBuffer == "wipe") {
Expand Down

0 comments on commit 6da612c

Please sign in to comment.