Esp 01 void setup not working

hi, first time using an esp board here, specifically the esp 01

here it seems that Serial.println() works in void loop() but not in void setup()

#include <HttpClient.h>
#include <WiFi.h>

void setup() {
  // put your setup code here, to run once:
    Serial.begin(9600);

    Serial.println("connecting");
    Serial.println("connected succesfully!");
}

void loop() {
  // put your main code here, to run repeatedly:
  Serial.println("test");
  delay(1000);
}

as you can see it prints out "test" every 1 second. but the first lines didnt print out "connecting" and "connected successfully!", instead its just gibberish

add delay(500) after Serial.begin

ive tried that and still nothing, i read somewhere that esp 01 always sends gibberish in the serial monitor when its booted, i dont exactly remember why though

I moved your topic to an appropriate forum category @peiwastaken.

In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.

This is an important part of responsible forum usage, as explained in the "How to get the best out of this forum" guide. The guide contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

oh yeah, sorry i was confused about where to put this in the topics, thanks

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.