Open vladak opened 2 years ago
The NINA firmware is only used on ESP32 boards that are used as "Airlift" co-processors to a non-wifi board, like a SAMD51, so not relevant to the espressif
port (e.g., ESP32-S2) which has native wifi. As you note, this issue would be an enhancement to the espressif
port, which does not currently allow for a ping
payload https://docs.circuitpython.org/en/latest/shared-bindings/wifi/index.html#wifi.Radio.ping
Currently wifi.radio.ping() does not allow to set the ICMP packet payload size. Looking into the code for nina-FW it is hardcoded to 32 bytes:
I'd like this to work e.g. for ESP32-S2 based boards, like https://www.adafruit.com/product/5303 and I am not sure these actually run nina-FW so the above is just an example.
Basically, I'd like to be able to call:
or such.
There are probably some limitations that need to be taken into account like limited memory size etc. (the packet is allocated on the stack in the above code)
Why do I need this ? In my environment, I have a suspicion that something is amiss with WiFi communication from the ESP32-S2 to my WiFi AP, especially when sending larger TCP packets (MQTT) and I'd like to test that hypothesis with ICMP.