linux/esptun.c
static void esp_tx_packet(int fd, const uint8_t *buffer, size_t size) {
    write_all(fd, S("AT+CIPSEND="));
    write_uint(fd, size);
    write_all(fd, S("\r\n"));
    if (esp_read_responses(fd, false)) {
        write_all(fd, buffer, size);
        esp_read_responses(fd, false);
    }
}
/** Send a packet to ESP interface. */
Send a packet to ESP interface.
Send a packet to ESP interface .
static void esp_tx_packet(int fd, const uint8_t *buffer, size_t size) {
    write_all(fd, S("AT+CIPSEND="));
    write_uint(fd, size);
    write_all(fd, S("\r\n"));
    if (esp_read_responses(fd, false)) {
        write_all(fd, buffer, size);
        esp_read_responses(fd, false);
    }
}
static void esp_tx_packet ( int fd , const uint8_t * buffer , size_t size ) { write_all ( fd , S ( " " ) ) ; write_uint ( fd , size ) ; write_all ( fd , S ( " \r \n " ) ) ; if ( esp_read_responses ( fd , false ) ) { write_all ( fd , buffer , size ) ; esp_read_responses ( fd , false ) ; } }
Send a packet to ESP interface.
Send a packet to ESP interface .