Created
July 1, 2020 20:28
-
-
Save stefanache/963311e8aee34f4858c25674657f51d1 to your computer and use it in GitHub Desktop.
ESP32 or ESP8266 sender
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 | |
} |
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
use Arduino-IDE for your esp8266/esp32 device/board to store this program and then close this IDE.
remain connected the your device/board at USB for working in loop after restarting it!