Problem with sending Serial commands, using the NimBLE and HardwareSerial libraries with esp32-c3-min. #1156
-
|
Hello, I recently migrated my code from BlueDroid to Nimble, and I'm having some very strange problems with the ESP serial and the library. In summary: The app sends command 4 -> ESP receives it -> passes it to the task -> the task sends it to the Arduino -> the Arduino waits -> if more than 3 seconds pass without another command, it executes the function -> if it receives something before then, for example, command x, which would represent that the client removed their finger, or any other function, it cancels the command. I need help with this because it works perfectly on BlueDroid, but I encountered this problem when migrating. If needed, I can provide part of the shipping and receiving code to make it clearer. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
@LucasOliveira674 Did you solve this? |
Beta Was this translation helpful? Give feedback.
-
|
Yes, the problem was in the antenna power setting, NimBLEDevice::setPower(12), I lowered it to 9 and it started working again. |
Beta Was this translation helpful? Give feedback.
Yes, the problem was in the antenna power setting, NimBLEDevice::setPower(12), I lowered it to 9 and it started working again.