Skip to content

Instantly share code, notes, and snippets.

@stefanache
Created July 1, 2020 20:28
Show Gist options
  • Save stefanache/963311e8aee34f4858c25674657f51d1 to your computer and use it in GitHub Desktop.
Save stefanache/963311e8aee34f4858c25674657f51d1 to your computer and use it in GitHub Desktop.
ESP32 or ESP8266 sender
/*
* SerialOutput sketch
* Print numbers to the serial port
vezi php_receive.php
*/
void setup()
{
Serial.begin(9600); // send and receive at 9600 baud
}
int number = 0;
void loop()
{
Serial.print("The number is ");
Serial.println(number); // print the number
delay(500); // delay half second between numbers
number++; // to the next number
}
@stefanache
Copy link
Author

you also can test if program working using Putty serial with following parameter:
port=COM4(for windows) and
speed=9600

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment