Skip to content

Instantly share code, notes, and snippets.

View rogerdenisvieira's full-sized avatar
🏠
Working from home

Roger D. Vieira rogerdenisvieira

🏠
Working from home
View GitHub Profile
@teos0009
teos0009 / ESP8266 Arduino Mega.cpp
Last active June 20, 2023 06:25
ESP8266 with Arduino
//#include <SoftwareSerial.h>
//use mega Serial 2 for serial monitor; Serial 1 on pins 19 (RX) and 18 (TX);// Serial2 on pins 17 (RX) and 16 (TX), Serial3 on pins 15 (RX) and 14 (TX).
#define SSID "enter SSID here"
#define PASS "enter password here"
#define DST_IP "220.181.111.85" //baidu.com
//SoftwareSerial dbgSerial(10, 11); // RX, TX
void setup()
{
// Open serial communications and wait for port to open:
//serial 2 is to esp8266