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.

26 lines
679 B

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. // -----------------------------------------------------------------------------
  2. // Wrap class around Embedis (settings & terminal)
  3. // -----------------------------------------------------------------------------
  4. #pragma once
  5. #include <Embedis.h>
  6. class EmbedisWrap : public Embedis {
  7. public:
  8. EmbedisWrap(Stream& stream, size_t buflen = 128, size_t argvlen = 8) :
  9. Embedis(stream, buflen, argvlen)
  10. {}
  11. unsigned char getCommandCount() {
  12. return commands.size();
  13. }
  14. String getCommandName(unsigned int i) {
  15. if (i < commands.size()) return commands[i].name;
  16. return String();
  17. }
  18. };