Mirror of espurna firmware for wireless switches and more
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.
 
 
 
 
 
 

33 lines
699 B

/*
TERMINAL MODULE
Copyright (C) 2016-2019 by Xose Pérez <xose dot perez at gmail dot com>
*/
#pragma once
#include <Arduino.h>
#include <cstddef>
#include "types.h"
#include "terminal_parsing.h"
#include "terminal_commands.h"
// XXX hijack original global namespace
namespace terminal {
using namespace espurna::terminal;
} // namespace terminal
void terminalOK(const espurna::terminal::CommandContext&);
void terminalError(const espurna::terminal::CommandContext&, const String&);
void terminalRegisterCommand(espurna::StringView name, espurna::terminal::CommandFunc func);
void terminalRegisterCommand(espurna::terminal::Commands);
void terminalWebApiSetup();
void terminalSetup();