The setup for TCP is something like this:
description command expected response
Begin ATE0 / AT OK
WIFIMode AT+CWMODE=3 OK
ConnectionMode AT+CIPMUX=0 OK
ApplicationMode AT+CIPMODE=0 OK
connected ? AT+CIPSTATUS STATUS:2 (ESP8266_CONNECTED_TO_AP)
Start AT+CIPMUX? CIPMUX:0
where "x.x.x.x" is the IP of my server (i.e., Android app, on same network) at port 10000.
So, it sets application mode to "both station and access point" (3); connection mode to "single" (1); application mode to "normal" (0); and then establishes the TCP connection (on IP x.x.x.x:10000). As I said, this works But when I try to follow this guide (https://www.espressif.com/sites/default ... n_v1.3.pdf) to set up UDP "as well", I end up getting error "CIPMUX and CIPSERVER must be 0"
Basically, what I'm trying to modify (with TCP + UDP) is to set connection mode to "multiple" (i.e. AT+CIPMUX:1) and then essentially do,
As I understand it, this second line will begin listening for UDP broadcasts on port 4445 -- from any IP address.
Does anyone see what's gone wrong here? CIPMUX must be set to 1 (multiple), right, to use TCP *and* UDP simultaneously?