ESP8266 crashes when sending UDP packet

what's the value of PARAMETER_SIZE_IN_BYTES ?

that is: 32

I found something new. The idea is this:

  1. connect to the servers hotspot
  2. Send your MAC address to the hotspot
  3. Receive the network name and password
  4. Send the last chars of both the network name and password
  5. If a match with data from the hotspot, send back "OKE"

But when I use a program called Packet Sender to send the data.
You can see that is works. But after I get the network name and password
and I send the last chars of both, the ESP crashes.

But if I just send the last chars of both, without doing the others steps, it works fine, see pic below: