Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void loop()
- {
- client = server.available();
- if (!client) return;
- data = checkClient();
- Serial.println(data);
- if (data == "forw")
- rotateForward();
- else if (data == "back")
- rotateBackward();
- else if (data == "lefo")
- rotateLeftForward();
- else if (data == "rifo")
- rotateRightForward();
- else if (data == "lebk")
- rotateLeftBackward();
- else if (data == "ribk")
- rotateRightBackward();
- else if (data == "stop")
- stop();
- Serial.println("New loop");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement