ESP32 | FLUTTER | USB SERIAL - HOW TO CONNECT THE ESP32 TO THE ANDROID(FLUTTER) USING THE USB CABLE (feat. UART)

This commit is contained in:
Eric
2019-08-31 16:55:02 -07:00
parent 255b5b9c67
commit 24a16dab0a
98 changed files with 1834 additions and 2599 deletions

View File

@@ -0,0 +1,17 @@
void setup() {
Serial.begin(115200);
Serial.println("Serial Comm Via USB UART");
Serial.flush();
}
void loop() {
while(Serial.available() > 0){
uint8_t byteFromSerial = Serial.read();
uint8_t buff[100] = {byteFromSerial};
String str = (char*)buff;
Serial.print(str);
}
}