Send result to server

code:
void add()
{
a=5;
b=10;
add=a+b;
}
can i send the result of add using server.send ?
if so how to send it?
it would to get assist about it.

Did you mean

int add()
{
a=5;
b=10;
 return a+b;
}

no i want send the result directly to the server
i created the server using esp8266webserver and i want to send it to the server using server.send if it is possible
we can send a sentence like hello world using server.send(200,“text,html”,hello world)
instead hello world i want to send the result of addition to server directly

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