欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

 找回密碼
 立即注冊(cè)

QQ登錄

只需一步,快速開(kāi)始

搜索
查看: 4825|回復(fù): 4
收起左側(cè)

esp8266連不上wifi

[復(fù)制鏈接]
ID:190584 發(fā)表于 2017-4-20 10:49 | 顯示全部樓層 |閱讀模式
        memset(&RsBuf[1],' ',18);
    Uart_init();
    lcd_init();
        delay(3000);
        SendString("+++");
        delay(500);
        SendString("+++\r\n");
        delay(500);
//        write_1602com(0xc0);
//        for(i=0;i<16;i++)
//        write_1602dat(RsBuf[i+2]);
        Rec_stop=0;
       
          memset(&RsBuf[1],' ',18);
        SendString("AT+CWMODE=1\r\n");
        write_1602com(0x01);
        write_string(0x80,"AT+CWMODE=1     ",0);
        while(Rec_stop==0) ;
        Rec_stop=0;
//        write_1602com(0xc0);
//        delay(1);
//        for(i=0;i<2;i++)
//        write_1602dat(RsBuf[i+2]);
        delay(2000);

          memset(&RsBuf[1],' ',18);
        SendString("AT+RST\r\n");
        write_1602com(0x01);
    write_string(0x80,"AT+RST          ",0);
        while(Rec_stop==0&&RsBuf[0]!='W');
        Rec_stop=0;
//        write_1602com(0xc0);
//        for(i=0;i<16;i++)
//        write_1602dat(RsBuf[i+2]);
           delay(3000);

          memset(&RsBuf[1],' ',18);
    SendString("ATE0\r\n");
        write_string(0x80,"ATE0            ",0);
        write_string(0xc0,"                ",0);
        while(Rec_stop==0) ;
        Rec_stop=0;
//        write_1602com(0xc0);
//        delay(1);
//        for(i=0;i<2;i++)
        write_1602dat(RsBuf[i+2]);
        delay(2000);

           memset(&RsBuf[1],' ',18);
        SendString("ATE0\r\n");
        write_1602com(0x01);
        write_string(0x80,"ATE0            ",0);
        while(Rec_stop==0) ;
        Rec_stop=0;
//        write_1602com(0xc0);
//        delay(1);
//        for(i=0;i<2;i++)
//        write_1602dat(RsBuf[i+2]);
                delay(2000);

        memset(&RsBuf[1],' ',18);
    SendString("AT+CIPMUX=0\r\n");
        write_1602com(0x01);
    write_string(0x80,"AT+CIPMUX=0      ",0);
        while(Rec_stop==0);
        Rec_stop=0;
//        write_1602com(0xc0);
//        for(i=0;i<2;i++)
//        write_1602dat(RsBuf[i+2]);
           delay(100);

            memset(&RsBuf[1],' ',18);
        SendString("AT+CIPSTART=\"TCP\",\"114.215.204.246\",9999\r\n");
        //SendString("AT+CIPSTART=TCP,114.215.204.246,9999\r\n");
        write_1602com(0x01);
    write_string(0x80,"AT+CISTART=TCP   ",0);
        while(Rec_stop==0&&RsBuf[2]=='O');
        Rec_stop=0;
//        write_1602com(0xc0);
//        for(i=0;i<2;i++)
//        write_1602dat(RsBuf[i+2]);
        delay(2000);


            memset(&RsBuf[1],' ',18);
        SendString("AT+CIPMODE=1\r\n");
        write_1602com(0x01);
    write_string(0x80,"AT+CIPMODE=1     ",0);
        while(Rec_stop==0);
        Rec_stop=0;
//        write_1602com(0xc0);
//        for(i=0;i<2;i++)
//        write_1602dat(RsBuf[i+2]);
        delay(2000);

        RsPoint=0;
        memset(&RsBuf[1],' ',18);
    SendString("AT+CIPSEND\r\n");
        write_1602com(0x01);
    write_string(0x80,"AT+CIPSEND       ",0);
        while(RsPoint==0);
//        write_1602com(0xc0);
//        for(i=0;i<16;i++)
//        write_1602dat(RsBuf[i]);
           delay(2000);
        SendString("AT+CWJAP=\"wodewifi\",\"nidemima\"\r\n");                       
         //在這里填入你的路由器名稱和密碼 分別替代wodewifi和 nidemima 雙引號(hào)和斜杠不能刪除
        delay(5000);


wifi配置在這里,串口助手里很多亂碼加上一直有wifi disconnected,不知道是什么問(wèn)題
捕獲.JPG
回復(fù)

使用道具 舉報(bào)

ID:240820 發(fā)表于 2018-1-6 15:31 | 顯示全部樓層
這個(gè)程序當(dāng)把這個(gè)單片機(jī)接上的時(shí)候  手機(jī)app 不能連接wifi 為什么
回復(fù)

使用道具 舉報(bào)

ID:240820 發(fā)表于 2018-1-6 15:54 | 顯示全部樓層
一直在發(fā)AT命令 然后APP會(huì)斷開(kāi)怎么讓手機(jī)斷wifi的連接不斷開(kāi)
回復(fù)

使用道具 舉報(bào)

ID:272453 發(fā)表于 2018-1-6 18:30 | 顯示全部樓層
重新用CWJAP鏈接一下
回復(fù)

使用道具 舉報(bào)

ID:272453 發(fā)表于 2018-1-6 18:32 | 顯示全部樓層
重新CWJAP連接一下試試
回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表