I have connected two ESP 32 via Bluetooth using BLE_Notify and BLE_Client examples. The Server ESP 32 is connected with a function generator and reads a 1 kHz sinewave using analog input. The ADC can easily sample 1 kHz but there is a 3 ms delay in the BLE_Notify code which causes any sinewave above 300 Hz to deteriorate. Removing or reducing this delay value causes the bluetooth to go into congestion and the program stops. What method can I use to send such a high frequency via Bluetooth. Thank you.
Why would you send a sampled sinewave to another microprocessor? Just send the number that represents the frequency and let the receiver generate the sine wave.
Thank you for your reply robin. But eventually i have to replace the function generator with a sensor that generates raw data in random frequency signals. I won't have a well defined continuous single frequency. Since bluetooth has a huge band width and ESP 32 has a fast ADC why should this stack congestion be an issue.