Skip to content

LilyGO/T-Koala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

T-Koala

image1

image2

Unit 1 Bluetooth

Phone pairing to connect to Bluetooth

void setup() {
  Serial.begin(115200);
  SerialBT.begin("ESP32test"); //Bluetooth device name
  Serial.println("The device started, now you can pair it with bluetooth!");
  Serial.println("My name is ESP32test");
}

ESP32 Bluetooth name is set by SerialBT.begin()


Uint 2 Wifi

Wifi_scan

Wifi scan serial port information display can connect wifi name and signal strength

 Serial.begin(115200);

    // Set WiFi to station mode and disconnect from an AP if it was previously connected
    WiFi.mode(WIFI_STA);
    WiFi.disconnect();
    delay(100);

    Serial.println("Setup done")

Wifi_web_sever

By connecting to WiFi, you can generate a web page.

const char* ssid = "TP-LINK-";//Please input your wifi ID
const char* password = "123456";//Please input your wifi password

//Log in with a browser to generate a mac address:
//example:192.168.0.108
digitalWrite(led, 1);
server.send(200, "text/plain", "hello from esp32!");
digitalWrite(led, 0);

Log in to 192.168.0.x,The screen will display:"hello from esp32!"


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages