aboutsummaryrefslogtreecommitdiff
path: root/stm32f091/esp8266.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-29 17:15:56 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-29 17:15:56 +0200
commit9947b4aa803b0430e38be3bd6f7179b45b201213 (patch)
tree3a4198da27ea0d200a31c2d28638df590480e792 /stm32f091/esp8266.c
parentf536fb4f92eda7ba5e80230a023b144d373dd86b (diff)
send data in chunks for reliability
Diffstat (limited to 'stm32f091/esp8266.c')
-rw-r--r--stm32f091/esp8266.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stm32f091/esp8266.c b/stm32f091/esp8266.c
index 159b55d..74ec347 100644
--- a/stm32f091/esp8266.c
+++ b/stm32f091/esp8266.c
@@ -75,9 +75,9 @@ void ws_esp8266_ap_client_mode() {
}
void ws_esp8266_start_tcp_server() {
- ws_esp8266_send_seq("AT+CIPSERVER=0\r\n");
- ws_esp8266_send_seq("AT+CIPMUX=1\r\n");
- ws_esp8266_send_seq("AT+CIPSERVER=1," WS_SERVER_PORT "\r\n");
+ ws_esp8266_send_seq("AT+CIPSERVER=0\r\n"); // stop tcp server (if running)
+ ws_esp8266_send_seq("AT+CIPMUX=1\r\n"); // enable multiplexing (allow multiple connections)
+ ws_esp8266_send_seq("AT+CIPSERVER=1," WS_SERVER_PORT "\r\n"); // start tcp server
}
void ws_esp8266_set_mac() {