狗趴(GodPub),开源硬件学习与实践

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
查看: 7271|回复: 2
打印 上一主题 下一主题

arduino uno + 8针 8266 wifi模块 遇到问题

[复制链接]

2

主题

4

帖子

24

积分

QQ群用户

积分
24
跳转到指定楼层
楼主
发表于 2015-3-3 23:52:56 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式
arduino uno + 8针 8266 wifi模块
(8266 链接 :http://detail.tmall.com/item.htm ... 325js995740&mt=

首先我下载了 8266驱动放在了arduino-1.5.7\libraries\ITEADLIB_ESP8266_c\ 下
arduino + 8266   我连接了 vcc 3.3 ;ch_pd 3.3;gnd ;urxd 9;utxd 10  ,然后
#define _DBG_RXPIN_ 10                //A0
#define _DBG_TXPIN_ 9                //A1

运行代码:
void setup()
{
Serial.begin(9600);
  Serial.println("Init 001");
  pinMode(4,OUTPUT);
  pinMode(5,OUTPUT);
  pinMode(6,OUTPUT);
  pinMode(7,OUTPUT);
Serial.println("Init 002");
wifi.begin();
Serial.println("Init 003");
bool b = wifi.Initialize(STA, SSID, PASSWORD);
if(!b)
{
Serial.println("Init error");
}
Serial.println("Init no error");
delay(8000); //make sure the module can have enough time to get an IP address
String ipstring = wifi.showIP();
Serial.println(ipstring);        //show the ip address of module

delay(2000);
wifi.confMux(1);
delay(100);
if(wifi.confServer(1,8080))
Serial.println("Server is set up");
}
void loop()
{}
运行效果:

Init 001
Init 002
AT+RST


然后就没有了 卡在这里了,代码无法调试我抑郁。。

请教大神
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏

2

主题

4

帖子

24

积分

QQ群用户

积分
24
沙发
 楼主| 发表于 2015-3-3 23:55:33 | 显示全部楼层
代码前边有定义:
#define SSID       "FAST_007"                //type your own SSID name
#define PASSWORD   "012345678901234567"                                //type your own WIFI password

#include "uartWIFI.h"
#include <SoftwareSerial.h>
WIFI wifi;

extern int chlID;        //client id(0-4)
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|狗趴(GodPub) Arduino&Raspberry Pi开源硬件学习与实践[QQ群:20085629]  

GMT+8, 2024-5-8 21:46 , Processed in 0.044999 second(s), 29 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表