mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
Call read commands from Web #2116
This commit is contained in:
@@ -834,4 +834,14 @@ float Helpers::numericoperator2scalefactor(int8_t numeric_operator) {
|
||||
return -numeric_operator;
|
||||
}
|
||||
|
||||
// convert the data into a vector of strings
|
||||
void Helpers::splitArguments(const char * data, std::vector<std::string> & arguments) {
|
||||
std::stringstream ss(data);
|
||||
std::string item;
|
||||
|
||||
while (std::getline(ss, item, ' ')) {
|
||||
arguments.push_back(item);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace emsesp
|
||||
|
||||
Reference in New Issue
Block a user