Beispiel #1
0
 explicit ShellCommand(const std::string& program)
 {
    boost::regex simpleCommand("^[a-zA-Z]+$");
    if (boost::regex_match(program, simpleCommand))
       output_ = program;
    else
       output_ = escape(program);
 }
Beispiel #2
0
bool Bluetooth_HC05::restoreDefaults(unsigned long timeout)
{
    PGM_STRING_MAPPED_TO_RAM(command, "ORGL");
    return simpleCommand(command, 0, timeout);
}
Beispiel #3
0
bool Bluetooth_HC05::softReset(unsigned long timeout)
{
    PGM_STRING_MAPPED_TO_RAM(reset_cmd, "RESET");
    return simpleCommand(reset_cmd, 0, timeout);
}