User manual
192.168.255.255\",90,91,2", "OK");
There are the following options for this parameter:
1
mode 0: This means that the IP and port will not change. This is also the default
setting, which becomes clear when you look at the other modes.
2
mode 1: The settings change once. This means: When the module starts with
the currently used broadcast address and then receives something from a PC, the
module will switch to the new address of the PC. In other words: the target IP that
you entered will be unnecessary then and the new address will be used to send to.
This address will be retained even if the module receives data from another PC.
3
mode 2: The settings change every time data are received from a new device.
This means that the IP will be able to switch to a new PC even if it has already
been changed once.
This is also the reason why you need to first send a command to the module be-
fore you can receive data. You should then be able to receive data from this com-
puter as well. This is not the case if you send a message to the module again from
the new PC.
001
boolean sendUDP(String Msg)
002
{
003
boolean success = true;
004
005
success &= sendCom("AT+CIPSEND=" + String(Msg.length() + 2),
006
if (success)
007
{
008
success &= sendCom(Msg, "OK");
009
}
010
return success;
011
}
An analogue value is sent in the loop-routine. For this, the new function sen-
dUDP() is used, which makes the known functions accessible more easily. There
does not always have to be a delay between sending the commands, since trans-