Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wdt reset because of WiFi client in Telegrambot Lib function and Pin interrupt #6

Open
Macci0 opened this issue Jul 13, 2017 · 1 comment

Comments

@Macci0
Copy link

Macci0 commented Jul 13, 2017

I tried a lot things wrote in this Issue:
esp8266/Arduino#1426
My workaround;

ETS_GPIO_INTR_DISABLE(); // interrupt disablen wegen softuart, da sonst wdt reset möglich
IPAddress server(149,154,167,198);
....
client.println("Connection: close"); /// zum speicher frei geben
ETS_GPIO_INTR_ENABLE(); // interrupt enablen/disablen wegen softuart, da sonst wdt reset möglich

In my Telegram-bot Lib.
(Connection: close remove also a Bug if you try to send an Email an with Telegrambot usage)

With that workaround there is missing Serial Data. So i do this in my Sketch:

for (int l = 0; l < 20 ; l++)
               { 
                error = my_sds.read(&p25,&p10);
                  if (!error)   {
                                break; 
                                }
                    else       {
                                p25=-2;
                                p10=-2;
                                } 
                delay(100);
                }

TelegramBot Lib:
https://github.com/Gianbacchio/ESP8266-TelegramBot

@ricki-z
Copy link
Owner

ricki-z commented Jun 29, 2019

@Macci0 Can we close this issue? I can only see a problem with the TelegramBot and WifiClient, but not with the SDS011 lib itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants