Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonathanprince/esp8266_resources
General Resources for ESP8266
https://github.com/jonathanprince/esp8266_resources
Last synced: 11 days ago
JSON representation
General Resources for ESP8266
- Host: GitHub
- URL: https://github.com/jonathanprince/esp8266_resources
- Owner: JonathanPrince
- Created: 2015-01-13T15:59:08.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-13T16:24:57.000Z (almost 10 years ago)
- Last Synced: 2024-04-16T08:46:32.703Z (7 months ago)
- Size: 113 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ESP8266_resources
General Resources for ESP8266##Simple Serial repeater with Arduino
For writing AT commands to ESP8266 using an Arduino as a USB-UART adaptor.
Connect ESP8266 to Arduino using pins 10 and 11 as RX and TX respectively, 3.3v and GND.
(A diagram for an ESP8266 breakout board will be coming soon)Upload following code to the Arduino.
```cpp
#includeSoftwareSerial softSerial(10, 11);
void setup() {
// Open serial connection
Serial.begin(9600);// set the data rate for the softSerial port
softSerial.begin(9600);}
void loop() {
// if data is available from softSerial write it to Serial
if (softSerial.available()) {
Serial.write(softSerial.read());
}
// if data is available from Serial write it to softSerial
if (Serial.available()) {
softSerial.write(Serial.read());
}
}
```Open Arduino Serial Monitor. Tools->Serial Monitor
Set Arduino Serial Monitor to 9600 baud, line ending to "Both NL & CR".
Reset ESP8266 and you should see something like the following in the serial monitor:
```
ó£àåP%ÐÇCÁaæ l!ÈÍ$#vÿFgØ¡P¥øùæ |gø
[Vendor:www.ai-thinker.com Version:0.9.2.4]ready
```The second test would be to try an AT command such as `AT+GMR` which should respond with
the firmware version of your ESP8266 module.**Connecting to an access point**
```
AT+CWJAP="",""
```**Check IP address**
```
AT+CIFSR
```