小学生
最后登录1970-1-1
在线时间 小时
注册时间2015-4-27
|
楼主 |
发表于 2015-5-13 10:23:25
|
显示全部楼层
void ESP8266_SendString ( FunctionalState enumEnUnvarnishTx, char * pStr, u32 ulStrLength, ENUM_ID_NO_TypeDef ucId )
{
char cStr [20];
if ( enumEnUnvarnishTx )
u3_printf ( "%s", pStr );
else
{
if ( ucId < 5 )
sprintf ( cStr, "AT+CIPSEND=%d,%d", ucId, ulStrLength + 2 );
else
sprintf ( cStr, "AT+CIPSEND=%d", ulStrLength + 2 );
ESP8266_Cmd ( cStr, "> ", 0, 500 );
delay_ms(10000);
ESP8266_Cmd ( pStr, "SEND OK", 0, 500 );
}
} |
|