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

// -----------------------------------------------------------------------------
// Wrap class around Embedis (settings & terminal)
// -----------------------------------------------------------------------------
#pragma once
#include <Embedis.h>
class EmbedisWrap : public Embedis {
public:
EmbedisWrap(Stream& stream, size_t buflen = 128, size_t argvlen = 8) :
Embedis(stream, buflen, argvlen)
{}
unsigned char getCommandCount() {
return commands.size();
}
String getCommandName(unsigned int i) {
if (i < commands.size()) return commands[i].name;
return String();
}
};