Hi all,
I am currently using a code from ESP32 Web Server - Arduino IDE | Random Nerd Tutorials
and a particular code part got me interested.
WiFiClient client = server.available(); // Listen for incoming clients
if (client) { // If a new client connects,
Serial.println("New Client."); // print a message out in the serial port
String currentLine = ""; // make a String to hold incoming data from the client
while (client.connected()) { // loop while the client's connected
if (client.available()) { // if there's bytes to read from the client,
char c = client.read(); // read a byte, then
Serial.write(c); // print it out the serial monitor
The client.read() and write got me interested.
So the information I got from the write/read was the HOST and etc. What I was curious about was the User Agent part of the information read.
So I got my device version and device Serial Number.
My Question is where does this client information come from and is there a way to edit it like getting the device mac address out of it?
Thanks in advance!