Skip to content

Instantly share code, notes, and snippets.

View stefanache's full-sized avatar

Stefanache Ion stefanache

View GitHub Profile
@stefanache
stefanache / run_python_receiver.bat
Created July 1, 2020 20:32
windows 10 - runner for python_receiver.py
@echo off
cls
cd <\path\where_is\the\python_receiver.py>
python -V
where python
python python_receiver.py
pause
@stefanache
stefanache / python_receiver.py
Created July 1, 2020 20:29
python receiver
#!C:\Python27\python
import serial
import time
port='COM4'
baud=9600
ser=serial.Serial(port, baud, timeout=0, parity=serial.PARITY_EVEN, rtscts=1)
while True:
data = ser.readline(ser.in_waiting).decode()
print(data)
@stefanache
stefanache / esp32_sendTo_com4_numbers.ino
Created July 1, 2020 20:28
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
}
Hello everybody!