ArduinoWebsockets
ArduinoWebsockets copied to clipboard
use wired solution with Wiznet module on teensy
Your library looks great. It seems to be more updated than https://github.com/PaulStoffregen/ArduinoWebsocketClient
I am hoping to use Websocket through the wizen module on a teensy 3.2 (Arduino compatible micro controller). But the library I am currently using does not support SEC-Key but it looks yours does.
Do you think it would be possible to add support for the wiznet ethernet module? Your wifi solution is great but I find a wired solution more secure for long term installations.
Thanks for any advice.
Yeah, WebSockets for wired Ethernet Shield (W5100, WizNet W5500 or ENC28j60) for MCUs like ATMega2560, AMtel328p or Cortex M0 would be a great idea! We could donate some boards if needed for research & testing.
Hi guys,
As you know, currently the library only supports esp32 and esp8266. Adding support for other boards is not very complicated, but it does take time, which I don't have plenty of.
I can however describe the process and let you try adding support for it yourselvs, If it works for you, you can consider donating it to the library. The process is:
- Implement the interfaces
TcpClientandTcpServerfor your board. Here is an example implementation of esp32 client and server (client uses this generic esp code) - Register it in ws_common.hpp. Meaning: add a
#elif definedfor your board.
This is the process generally, some experimination is required for sure.
Honestly, it is not likely that I will start adding support for other boards myself. I'm currently a solo maintainer for this library. more boards means more platform specific bugs and issues. Buying the boards is not the issue :)
Gil.
Thanks for those tips. I will certainly give it a try and keep everyone updated here.