platformio / platform-espressif8266

Espressif 8266: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/espressif8266
Apache License 2.0
323 stars 219 forks source link

Can't get serial data from Serial monitor #178

Closed morestart closed 4 years ago

morestart commented 4 years ago

this is my test code

void setup(){
  Serial.begin(9600);
}

void loop(){
  Serial.println("OK");
  delay(1000);
}

serial monitor always no data, i use vs code & win10 1903. But when i use serial tools, i can recive the serial data.

this is my platform.ini content:

[env:nodemcuv2]
platform = espressif8266
board = nodemcuv2
framework = arduino
monitor_speed = 9600
upload_speed = 961200
pfeerick commented 4 years ago

Double check the correct serial port is being used. For example, your system may have a built-in serial port, and PlatformIO connecting to that by mistake.

morestart commented 4 years ago

Double check the correct serial port is being used. For example, your system may have a built-in serial port, and PlatformIO connecting to that by mistake.

yeah,you are right