Esp32, aumentar buffer #149
Replies: 4 comments
-
Hi @Damian-Mora, if Google Translate is correct:
You can modify the Keybus data buffer by changing
I'm curious, what is your sketch doing? For ESP8266 and ESP32, the library buffers 50 commands and I've never seen a sketch run out of the buffer - is the sketch going a long time without calling ESP32 is supported in the develop branch, I still need to merge into a new release but you can use the develop branch without issues. |
Beta Was this translation helpful? Give feedback.
-
Muchas gracias por tu pronta respuesta, ya me queda claro lo del buffer de eventos. Te comento estoy utilizando la librería y guardo los datos en database firebase, sucede que al momento de enviar señales si el internet está en óptimas condiciones me funciona de maravilla, pero cuando el internet falla y justo en ese momento está enviando señales a firebase el módulo se queda pegado ya que pierde mucho tiempo al tartar de enviar la señal, y mientras sucede eso se pierde información de la librería .. de la única forma que arranca es con un reset de hardware Ya que por software no me funciona. La idea es cambiarlo a un esp32 para utilizar los dos núcleos , uno para la librería dsc y el otro núcleo q se encargue de la nube. Estoy a la espera de q me llegue el módulo esp32 para hacer pruebas |
Beta Was this translation helpful? Give feedback.
-
In this case, increasing the buffer would only help if the internet connection is down for short periods. Depending on the Firebase library, you may be able to initiate the connection and then run a loop until the connection is available - for example, in the Email sketch:
This runs
If you are using the esp32 Arduino library, the Arduino sketch runs in a single task on a single core by default, but this would work if you are able to split off the Firebase code into a separate RTOS task. |
Beta Was this translation helpful? Give feedback.
-
Muchas gracias por tus respuestas. |
Beta Was this translation helpful? Give feedback.
-
He probado está maravillosa librería en el módulo Esp8266 y me ha funcionado muy bien, de vez en cuando me genera problemas en el buffer y me gustaría saber cómo puedo hacer para aumentar el buffer, también me gustaría saber que tengo q cambiar para q me funcione está librería en un esp32. Muchas gracias a los desarrolladores por compartir sus investigaciones y conocimientos.
Beta Was this translation helpful? Give feedback.
All reactions