mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-01-28 17:49:08 +03:00
refactor commands to its own class, implement rest API #506
This commit is contained in:
@@ -33,14 +33,13 @@ class String {
|
||||
return lhs;
|
||||
}
|
||||
|
||||
///
|
||||
bool isEmpty() {
|
||||
return _str.empty();
|
||||
}
|
||||
|
||||
// long toInt() const {
|
||||
// return std::stol(_str);
|
||||
// }
|
||||
long toInt() const {
|
||||
return std::stol(_str);
|
||||
}
|
||||
|
||||
bool equals(const char * s) {
|
||||
return _str == s;
|
||||
|
||||
Reference in New Issue
Block a user