Skip to content

Commit db18546

Browse files
author
Architecting
committed
Add pinout and attention
1 parent 080c236 commit db18546

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,39 @@ will be useful for Arduino developers.
9999
- WBoard Pro
100100
- MEGA and its derivatives
101101

102+
# Hardware Connection
103+
104+
WeeESP8266 library only needs an uart for hardware connection. All communications
105+
are done via uart. In each example, you must specify the uart used by mainboard
106+
to communicate with ESP8266 flashed AT firmware.
107+
108+
For MEGA and WBoard Pro, Serial1 will be used if you create an object (named wifi)
109+
of class ESP8266 in your code like this:
110+
111+
#include "ESP8266.h"
112+
ESP8266 wifi(Serial1);
113+
114+
the connection should be like these:
115+
116+
ESP8266_TX->RX1(D19)
117+
ESP8266_RX->TX1(D18)
118+
ESP8266_CH_PD->3.3V
119+
ESP8266_VCC->3.3V
120+
ESP8266_GND->GND
121+
122+
# Attention
123+
124+
The size of data from ESP8266 is too big for arduino sometimes, so the library can't
125+
receive the whole buffer because the size of the hardware serial buffer which is
126+
defined in HardwareSerial.h is too small.
127+
128+
Open the file from \arduino\hardware\arduino\avr\cores\arduino\HardwareSerial.h. See the follow line in the HardwareSerial.h file.
129+
130+
#define SERIAL_BUFFER_SIZE 64
131+
132+
The default size of the buffer is 64. Change it into a bigger number, like 256 or more.
133+
134+
102135
-------------------------------------------------------------------------------
103136

104137
# The End!

0 commit comments

Comments
 (0)