-
It may be that this just isn't possible with the ESP8266 AT firmware. As far as I can tell the AT firmware provides no information on where a UDP packet came from (address/port), so it might not be possible to send a response back to the right address (unless you know for sure where Alexa is).
The CIPSTATUS (implementation source link) seems to be the command returning the remote_port/ip information. Perhaps that could be send for every +IPD received?
@PaddeK ahh, ok. Thanks - I look forward to a PR when it's ready. It could potentially be difficult since the ESP8266 should be powered off when not connected.
As a hack for sending UDP, you can do something like this for now:
But I have attached my extremely work in progress UDP implementation.
It may be that this just isn't possible with the ESP8266 AT firmware. As far as I can tell the AT firmware provides no information on where a UDP packet came from (address/port), so it might not be possible to send a response back to the right address (unless you know for sure where Alexa is).
1 Attachment