Here we can all chat about fixing the AT+ command structure and the associated responses.

User avatar
By igrr
#3015
GregorPa wrote:Please change the size of tx buffer in the future firmwares.

I dont think I follow. There's no tx buffer in my firmware :)
On the UART side, there's a 128-byte hardware FIFO.
On the TCP/IP side, there are some buffers inside the lwIP stack, which are probably dynamic.
User avatar
By pvvx
#3152
igrr wrote: But it's kind of a hack. What if you suddenly need to send a 3k byte web page? ;)

Code: Select all....
      struct espconn *pesp_conn = arg;
      if(pesp_conn == NULL) return;
      espconn_msg *pnode = NULL;
      unsigned int max_send_bytes = 0;

      if (espconn_find_connection(pesp_conn, &pnode)) {
        struct tcp_pcb *pcb = pnode->pcommon.pcb;

        max_send_bytes = tcp_sndbuf(pcb);
      };

      if(max_send_bytes > ...user_def_size...) espconn_sent(pesp_conn, buf, ...user_def_size...);
      else os_printf("...!");
....

send_tcp.zip
You do not have the required permissions to view the files attached to this post.