I am working on doing an Arduino project using a Wifi connection. I was wondering how to send integers through the serial moniter. This is what I have so far:
if(Serial.available()) {
while(Serial.available()) {
char c = Serial.read();
if(c == '\n') {
send_message(client, tx_buffer);
tx_buffer = "";
} else tx_buffer += c;
}
}
This is to send a character through the serial moniter. How would you do it for an integer?