Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
527 B

  1. /*
  2. TERMINAL MODULE
  3. Copyright (C) 2016-2019 by Xose Pérez <xose dot perez at gmail dot com>
  4. */
  5. #pragma once
  6. #include "espurna.h"
  7. #if TERMINAL_SUPPORT
  8. #include "libs/EmbedisWrap.h"
  9. using embedis_command_f = void (*)(Embedis*);
  10. void terminalOK();
  11. void terminalError(const String& error);
  12. void terminalRegisterCommand(const String& name, embedis_command_f func);
  13. void terminalInject(void *data, size_t len);
  14. void terminalInject(char ch);
  15. Stream& terminalSerial();
  16. void terminalSetup();
  17. #endif // TERMINAL_SUPPORT == 1