The packet latency can be a few hundred ms when in low power mode. Without low power its ~15ms. This may account for the poor throughput.
Code: Select all
esp_wifi_set_ps(WIFI_PS_NONE);
Code: Select all
esp_wifi_set_ps(WIFI_PS_NONE);
Code: Select all
usample = ((uint32_t)((sin( 2.0 * M_PI * ((double)i / NOofSAMPLESperSINE)) + 1.0) * (double)AMP_DAC/2.0 + 0.5)) << 8;