A WebSocket Server and Client library for Arduino, based on RFC6455, for writing modern Websockets applications. Now support ESP8266, ESP32 (including ESP32-S2 Saola, AI-Thinker ESP-12K, WT32_ETH01, etc.), nRF52, SAMD21, SAMD51, SAM DUE, STM32F/L/H/G/WB/MP1, Teensy, RP2040-based, etc. boards, with WiFiNINA, Teensy 4.1 NativeEthernet/QNEthernet, Ethernet W5x00 / ENC28J60 / LAN8742A / LAN8720, ESP8266 / ESP32-AT modules/shields, as well as SINRIC / Alexa / Google Home
GNU General Public License v3.0
81
stars
30
forks
source link
Socket.io client on Teensy Native Ethernet not working #22
Getting compiler warnings, not seeing any packets from Teensy using this code, only modified the IP server address(192.168.1.187) and Port (3000)
Steps to Reproduce
Steps to reproduce the behavior. Including the MRE sketches
Expected behavior
Expected to see TCP packets from teensy on Wireshark
Actual behavior
Can ping teensy, and see the pings on wireshark
Debug and AT-command log (if applicable)
Arduino compiler
Teensy_WebSocketClientSocketIO_NativeEthernet:84: warning: #warning Using NativeEthernet lib for Teensy 4.1. Must also use Teensy Packages Patch or error
#warning Using NativeEthernet lib for Teensy 4.1. Must also use Teensy Packages Patch or error
^
In file included from C:\Users\me\GitHub\Arduino\libraries\WebSockets_Generic\src/WebSocketsClient_Generic.h:56:0,
from C:\Users\me\GitHub\Arduino\Teensy_WebSocketClientSocketIO_NativeEthernet\Teensy_WebSocketClientSocketIO_NativeEthernet.ino:126:
C:\Users\me\GitHub\Arduino\libraries\WebSockets_Generic\src/WebSockets_Generic.h:231:4: warning: #warning Use Teensy in WebSockets_Generic [-Wcpp]
#warning Use Teensy in WebSockets_Generic
^
C:\Users\me\GitHub\Arduino\libraries\WebSockets_Generic\src/WebSockets_Generic.h:516:4: warning: #warning Using Teensy 4.1 NativeEthernet Library [-Wcpp]
#warning Using Teensy 4.1 NativeEthernet Library
^
In file included from C:\Users\me\GitHub\Arduino\libraries\WebSockets_Generic\src/WebSockets_Generic.h:718:0,
from C:\Users\me\GitHub\Arduino\libraries\WebSockets_Generic\src/WebSocketsClient_Generic.h:56,
from C:\Users\me\GitHub\Arduino\Teensy_WebSocketClientSocketIO_NativeEthernet\Teensy_WebSocketClientSocketIO_NativeEthernet.ino:126:
C:\Users\me\GitHub\Arduino\libraries\WebSockets_Generic\src/WebSockets_Generic-Impl.h:74:6: warning: #warning No CORE_HAS_LIBB64 [-Wcpp]
#warning No CORE_HAS_LIBB64
^
In file included from C:\Users\me\GitHub\Arduino\libraries\WebSockets_Generic\src/WebSocketsClient_Generic.h:236:0,
from C:\Users\me\GitHub\Arduino\Teensy_WebSocketClientSocketIO_NativeEthernet\Teensy_WebSocketClientSocketIO_NativeEthernet.ino:126:
C:\Users\me\GitHub\Arduino\libraries\WebSockets_Generic\src/WebSocketsClient_Generic-Impl.h:303:4: warning: #warning WEBSOCKETS_NETWORK_TYPE != NETWORK_ESP8266_ASYNC [-Wcpp]
#warning WEBSOCKETS_NETWORK_TYPE != NETWORK_ESP8266_ASYNC
^
C:\Users\me\GitHub\Arduino\libraries\WebSockets_Generic\src/WebSocketsClient_Generic-Impl.h:420:6: warning: #warning Not HAS_SSL [-Wcpp]
#warning Not HAS_SSL
^
C:\Users\me\GitHub\Arduino\libraries\WebSockets_Generic\src/WebSocketsClient_Generic-Impl.h: In member function 'virtual void WebSocketsClient::clientDisconnect(WSclient_t*)':
C:\Users\me\GitHub\Arduino\libraries\WebSockets_Generic\src/WebSocketsClient_Generic-Impl.h:729:20: warning: deleting object of polymorphic class type 'EthernetClient' which has non-virtual destructor might cause undefined behaviour [-Wdelete-non-virtual-dtor]
delete client->tcp;
^
Opening Teensy Loader...
Memory Usage on Teensy 4.1:
FLASH: code:235564, data:75072, headers:7276 free for files:7808552
RAM1: variables:40100, code:95512, padding:2792 free for local variables:385884
RAM2: variables:12416 free for malloc/new:511872
ping 192.168.1.117
Pinging 192.168.1.117 with 32 bytes of data:
Reply from 192.168.1.117: bytes=32 time=1ms TTL=64
Reply from 192.168.1.117: bytes=32 time=1ms TTL=64
Reply from 192.168.1.117: bytes=32 time=1ms TTL=64
Reply from 192.168.1.117: bytes=32 time=1ms TTL=64
Ping statistics for 192.168.1.117:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms
Wireshark
Screenshots
If applicable, add screenshots to help explain your problem.
Information
Please ensure to specify the following:
Arduino IDE version:1.8.15
TeensyDuino: 1.54 Beta9
Contextual information: looking to confirm packets are being sent
Anything that might be relevant in your opinion, such as:
Describe the bug
Getting compiler warnings, not seeing any packets from Teensy using this code, only modified the IP server address(192.168.1.187) and Port (3000)
Steps to Reproduce
Steps to reproduce the behavior. Including the MRE sketches
Expected behavior
Expected to see TCP packets from teensy on Wireshark
Actual behavior
Can ping teensy, and see the pings on wireshark
Debug and AT-command log (if applicable)
Arduino compiler
Teensy serial output:
Ping:
Wireshark![image](https://user-images.githubusercontent.com/57600622/122846477-bf4a4e00-d2ba-11eb-8e9c-a0e836117088.png)
Screenshots
If applicable, add screenshots to help explain your problem.
Information
Please ensure to specify the following: