39#ifndef HOST_TEST_BUILD
40 void getJsonProperties(JsonObject& json)
const override { json[
"value"] = message.c_str(); }
55 const std::string&
getMessage()
const {
return message; }
Base class for all pedal actions.
virtual void getJsonProperties(JsonObject &json) const
Action that outputs text to serial console.
const std::string & getMessage() const
Gets the message that will be output.
Action::Type getType() const override
Gets the type of this action.
void execute() override
Executes the serial output action.
bool isSendAction() const override
Checks if this action is a send action.