**!!注意:自行开发刷固件之后,将失去默认固件功能,且无法恢复。**
## 一、Arduino ESP866开发环境
参见 [Arduino ESP866开发环境](https://www.kancloud.cn/bigiot/common/497827)
## 二、示例代码
在购买模块之后联系客服提供ESP8266 Arduino示例代码(包括本地按钮控制和连接贝壳物联平台远程控制示例代码)和Arduino IDE库文件(对板载LED、继电器控制的封装)。

## 三、烧录模式接线
| 继电器模块 | USB转TTL | 电源 |
| --- | --- | --- |
| RX | TX |
| TX | RX |
| GND | GND | GND |
| Vin | | 5V |
| IO0 | | GND |
*5V电源也可以直接使用USB转TTL的5V提供,不稳定时可考虑使用独立电源。*
*io0可直接短接继电器模块上的GND*
## 四、开发参考文档
1. 贝壳物联平台通讯协议(中文):https://www.bigiot.net/category/1.html
2. Arduino ESP866官方说明手册(英文):https://arduino-esp8266.readthedocs.io/en/latest/
3. NodeMCU开发官方文档(英文):http://nodemcu.readthedocs.io/en/dev/
4. 安信可ESP8266文档中心(中文):http://wiki.ai-thinker.com/esp8266/docs
5. 乐鑫官方资料(中英文):http://espressif.com/zh-hans/support/download/documents
6. micropython for esp8266 文档(英文):http://docs.micropython.org/en/latest/esp8266/index.html