smart home with nodemcu and app inventor 2 englis
{ String request = client.readStringUntil('\r'); if (request.indexOf("ON") != -1) { digitalWrite(relayPin, HIGH); } else if (request.indexOf("OFF") != -1) { digitalWrite(relayPin, LOW); } client.flush(); } } ``` Developing the Android App Using MIT App Inventor 2 Designing the Use