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.

24 lines
658 B

7 years ago
6 years ago
7 years ago
6 years ago
7 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): Embedis(stream, buflen, argvlen) {}
  9. unsigned char getCommandCount() {
  10. return commands.size();
  11. }
  12. String getCommandName(unsigned int i) {
  13. if (i < commands.size()) return commands[i].name;
  14. return String();
  15. }
  16. };