Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //check UART for data
- if(Serial.available()){
- size_t len = Serial.available();
- uint8_t sbuf[len];
- Serial.readBytes(sbuf, len);
- if (localClient && localClient.connected()){
- localClient.write(sbuf, len);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement