Search
 
SCRIPT & CODE EXAMPLE
 

C

esp32 dhcp server

WiFiServer server(80);

static const char *ap_ssid = "ESP32-001";
static const char *ap_pass = "temp_pass";

void setup() {
  Serial.begin(115200);

  WiFi.softAP(ap_ssid, ap_pass);
  Serial.print("Access point running. IP address: ");
  Serial.print(WiFi.softAPIP());
  Serial.println("");

  server.begin();
}

void loop() {
  WiFiClient client = server.available();

  if (client) {
    String client_ip = client.remoteIP().toString();
    Serial.print("Client connected. IP address = ");
    Serial.print(client_ip);
    Serial.println("");
    client.println("Hello ...");
    client.stop();
  }
}
Comment

PREVIOUS NEXT
Code Example
C :: how to check the word is present in given char array in c 
C :: Create the static library libmy.a containing all the functions listed below: 
C :: vifm preview images 
C :: c read binary file 
C :: print 0 1 2 3 4 in c while loop 
C :: int to void* c 
C :: c conventions 
C :: relational operators in c 
C :: calling of a void in c 
C :: loops questions on c 
C :: Regex to match any character being repeated more than 10 times 
C :: north austin weather 
C :: C Pass Individual Array Elements 
C :: Number 10 
C :: data-types 
C :: run a command in cmd with c 
C :: ansi c write unsigned short to file 
C :: can torch light bring change in chemical reaction 
C :: how to make C program blink on screen 
C :: set all pins as input for loop 
C :: C Change Value of Array elements 
C :: python to java translator online 
C :: 50 north main 07522 
C :: algorithm for sorting numbers in ascending order 
C :: panagram in c 
C :: Futter Square Button full 
C :: online c compiler with mpi 
C :: ctest run specific test 
C :: how to get value of multidimensional array in c 
C :: how can i show ant text by onclick 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =