標題: 手機接收 esp8266傳輸?shù)臄?shù)據(jù)問題 [打印本頁]

作者: sanshisui    時間: 2018-5-14 17:10
標題: 手機接收 esp8266傳輸?shù)臄?shù)據(jù)問題
本帖最后由 sanshisui 于 2018-5-14 20:55 編輯

ESP8266+52單片機,在AP模式下手機接收單片機反饋的信息是不能顯示變量值,代碼如下。怎么顯示這個temp和K的值,請大佬指點一下
void InterruptUART() interrupt 4      
{
    if (RI)  
    {
        RI = 0;  
        dat = SBUF;  
            if(dat=='a')   {K=K+1;        }
            if(dat=='b')   {K=K-1 ;}
            if(dat=='c')
                {                                                        
                                                                        Uart_Send_String("現(xiàn)在溫度:temp,設(shè)定溫度:K")
                 }                                                                                                                  
             if(dat=='r')
                                                 {   Uart_Send_String("AT+CIPSEND=0,24\r\n");}        

                                   
                                                               
    }
    if (TI)  
    {
        TI = 0;  
    }
        }






歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1