-
Notifications
You must be signed in to change notification settings - Fork 21
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
Incompatibility to WiFi Manager or another WiFi Connection? #2
Comments
Hi. |
Also I'm quite surprised to hear that it takes so long for your router to register that the device is gone. For me the change was usually registered after 5-30s. |
Just before I spend any time of debugging the library; you seem to get a "rst cause: 2" error. That might be related to pins not properly pulled up or down or power supply issues (esp8266/Arduino#2414). |
Good hint! Here is the serial output:
I have attached my full sketch in this post, which causes the following exception (sorry for german comments; the important parts are in english). In this sketch I have integrated only the definitions, the helper methods and the setup()-part of your example sketch, since the connected-devices list (shown after "Initialize TR-064 connectionWIFI has 5 (connected) devices.") is all I am interested in.
Although "wdt reset" is the last serial output of the first run after flashing, the ESP did not restart. When I restart it manually, the ESP restarts after each exception:
It is interesting, that my full sketch shows Router has 5 known devices. in the serial output. When running your example sketch, the serial output gives Router has 34 known devices.. The result of running my sketch causing the exception and running your example sketch causing a working example is repeatable. Let me know of any further questions or if I can help somehow. |
So the difference between the 34 and 5 comes from the fact, that you commented out the line to get the number of known devices¹ ¹ As in "connected to the network at SOME point." |
Okay, I just ran this MWE with the WiFi Manager you'd like to use and it worked just fine. Here is the code:
Can you test and see if this is working for you? |
Thank you for your quick support. Your posted sketch works fine. Also, you are right, I have commented out the wrong part, so getDeviceNumber(); was not called. After some testing, I think there seems to a an incompatability between #include <tr064.h> and #include <UniversalTelegramBot.h>. For the latter, an issue already exists: https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot/issues/56 , so I think your work here may be done. When testing, I changed the order, where the Telegram Bot is used. if setup() looks like this
I get a message from the Telegram Bot and the following serial output:
If the bot function is used after TR-64,
the serial output gives
So I think the cause for this is in the library https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot Thank you for your time and keep up the good work! |
Ok, I'll consider this Closed for now. Let me know if you run into any further issues. |
First of all: great idea! Since I have a FritzBox 6490 Cable, I would like to use this library.
My Network looks like this:
ESP8266 <-WiFi-> WiFi Access point <-LAN-cable-> FritzBox 6490
This is the configuration:
If i add the following under Setup(),
this is the serial output when connection.init(); was called:
If I change Setup() to the following:
the listing of devices works, but after that, the exception occurs:
I am not sure which library might cause this exception. If I run your example, it runs fine. If I disconnect devices from the WiFi, the FritzBox changes the Active state to 0 after ~9 minutes.
Maybe this helps in troubleshooting.
The text was updated successfully, but these errors were encountered: