mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +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