mirror of
https://github.com/modelec/connectors.git
synced 2026-03-18 21:50:33 +01:00
change state control
This commit is contained in:
@@ -89,7 +89,7 @@ void MyTCPClient::handleMessageFromArduino(const std::string &message) {
|
||||
std::vector<std::string> args = TCPSocket::split(message, ":");
|
||||
if (args.size() == 2) {
|
||||
std::vector<std::string> token = TCPSocket::split(args[0], ",");
|
||||
isDoingSomething = (args[1] == "0");
|
||||
isDoingSomething = (args[1] == "0" ? 0 : 1);
|
||||
std::cout << "isDoingSomethngs : " << isDoingSomething << " | " << args[1] << std::endl;
|
||||
if (token.size() == 3) {
|
||||
if (TCPSocket::startWith(token[0], ".")) {
|
||||
|
||||
Reference in New Issue
Block a user