-
Notifications
You must be signed in to change notification settings - Fork 22
Major issue with WiFiNINA - Arduino IoT 33 #3
Comments
This is what i get if i enable DEBUG 4
|
Hi @giliweb The messages are just for debugging, and in the current example, the debug level is set to the highest level. It's possible that too many unnecessary messages sent to Serial port creates the unresponsiveness and crash. Can you try by reduce the debug level to minimum (at the beginning of sketch), then inform if it's OK
I'll spend time to go deeper to find the bug and fix. |
Hi @khoih-prog thanks for your quick reply. |
Understand that, that's why I said
|
Hi @giliweb Currently, I'm a little busy and can't spend lot of time on the bug.
As this library is currently new and just a port from ESP to other platforms, it inherits all the features and bugs from the original arduinoWebSockets Library. Thanks, |
I should have an esp32 board somewhere, I'll give it a try |
Hi @giliweb Just spent some time to look at the issue. It seems more complicated than normal simple bug. It'll affect the WebSockets Server function, the WebSockets Client function is still OK. The main issue is the original library WiFiNINA / WiFiNINA_Generic is not fully compatible with the original WebSockets library, originally written for ESP. It'll take much longer time to find out and solve the issue. Even it'll need a drastic measure to re-write / restructure either the WiFiNINA_Generic or WebSockets_Generic library. So, don't expect this will be solved quickly. If you can find another quicker solution, I suggest you go with that. The No free space new client / Counting of clients wrong? is another aspect of this same bug / issue. Good Luck, |
Hi @giliweb Please try the new WebSockets2_Generic Library I believe there is no WebSocket Server issue as this WebSockets_Generic Library. This is terminal debug output when running SAMDUE-Ethernet-Server on SAM DUE board with Ethernet W5100 shield using EthernetLarge library, and receiving WebSockets connection from an ESP8266 board.
Why do we need this WebSockets2_Generic libraryMany Web services require WebSockets library, which is so far written only for ESP8266/ESP32 boards. The ESP boards so far rely on the Markus Sattler's WebSockets Library to connect to Alexa via Sinric or SinricPro skills. This WebSockets2_Generic library is based on and modified from Gil Maimon's ArduinoWebSockets Library to provide support to many more boards, such as Arduino SAMD21, Adafruit SAMD21/SAMD51, nRF52, STM32, Teensy, SAM DUE, etc. and enable those boards to use WebSockets services, including voice-control Alexa along with Blynk. Those supported boards can also run WebSockets Server. The WebSockets can be used with ESP’s WiFi, WiFiNINA, W5x00/ENC28J60/LAN8742A Ethernet, ESP8266/ESP32-AT modules/shields. New in v1.0.1
New in v1.0.0
|
The new WebSockets2_Generic v1.0.6 has been released with these new features to fix the blocking action of WebSockets Server that prevents the concurrent running of WebServer and WebSockets Server you experienced so far. New in WebSockets2_Generic v1.0.6
Please try the example SAMD-AdvancedWebServer on Nano-33-IoT to have feelings. Then modify it to fix your purpose. |
Try to run the example Generic_WebSocketServer_WiFiNINA on my Arduino IoT 33.
It connects to my Home wifi, then it just starts spamming the DISCONNECTED event:
It continues like that until arduino ide just crashes.
I'm not even trying to connect another device at this point, cos i can't.
Can you please help with this issue? I found this library has a lot of potential but i can't use it. Or maybe i can contribute if you point me in the right direction, thanks.
The text was updated successfully, but these errors were encountered: