Comments (4)
+1
ESP32 really loss a lot of messages if we trying to send it by external trigger (for example, send message when pin triggered)
If use ESP32 only for reply to incoming messages, it working good :/
from asynctelegram.
ESP8266 does not affected
from asynctelegram.
Sorry for big late response, but in these days my free time has been dedicated to the development of version 2.
As for the problem in question, I suppose that somehow it is due to the fact that with the esp32, sending of commands to the server takes place in a parallel task and therefore the requests are "overlapped" with periodically getUpdates() request.
Indeed, in the new version I have removed this mechanism leaving the users free to choice if use or not the task management (but on the sketch side like I've done in ESP32-CAM.ino for example).
If you want try to switch, I've created a distinct repo for the reason explained within readme,
I'm testing it since days with very good results. Now i'm testing a sketch for sending a message every 10s like this.
Actually it fails sometimes (less than 1%) when connection was closed from server side while sending message, but i'm sure this can be avoided easily for example checking for new messages just before.
if(millis() - tMessage > 10000){
tMessage = millis();
time_t now = time(nullptr);
struct tm time = *localtime(&now);
char buffer[128];
static int count = 0;
snprintf(buffer, 256, "%d - %02d:%02d:%02d\n", count++, time.tm_hour, time.tm_min, time.tm_sec);
Serial.print(buffer);
}
from asynctelegram.
BTW if we disable multicore http-client (use esp32 with "ESP8266 ifdefs") then loss of messages bug is gone.
I suggest adding the option to disable the multi-core client and use blocking functions if the user wants to get stable message delivery
from asynctelegram.
Related Issues (20)
- Add custom sendMessage parameter (feat request) HOT 2
- SIM800 support HOT 1
- Send message by User ID: backward compatibility issue on 1.0.9+ HOT 3
- New release make code fail. HOT 3
- It is not good to use the wifi check in the library HOT 6
- Strange behavior when ESP32-CAM initiate an image send HOT 2
- Thank you for your ESP-32 Cam example, now I can receive a photo in full resolution HOT 1
- sendToGroup is deprecated - what is the new method to send to group ? HOT 2
- How to get the user chat_id HOT 7
- Channel_id? HOT 13
- Flush message queue? HOT 2
- ESP32 gif message crash
- inline keyboard not working
- connection status checking and stop HOT 1
- espressif8266 @ 3.0.0 warnings HOT 1
- Transmitting characters HOT 4
- Callback query issue HOT 1
- Не работает OTAupdate_ESP8266
- sendToChannel
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asynctelegram.