您好,這是Adafruit_CC3000.h中的函數
原型如下
size_t Adafruit_CC3000_Client::fastrprint(const __FlashStringHelper *ifsh)
{
char _tx_buf[TXBUFFERSIZE];
uint8_t idx = 0;
const char *p = (const char PROGMEM *)ifsh;
size_t n = 0;
while (1) {
unsigned char c = pgm_read_byte(p++);
if (c == 0) break;
_tx_buf[idx] = c;
idx++;
if (idx >= TXBUFFERSIZE) {
// lets send it!
n += send(_socket, _tx_buf, TXBUFFERSIZE, 0);
idx = 0;
}
}
if (idx > 0) {
// Send any remaining data in the transmit buffer.
n += send(_socket, _tx_buf, idx, 0);
}
return n;
}
這裡也附上Adafruit的cc3000函式庫http://cf02.ickimg.com/bbsfiles/201704/b483f202c11753f2e17512bfed384bcf.zip
以上供參考