ArduinoWebsockets icon indicating copy to clipboard operation
ArduinoWebsockets copied to clipboard

use wired solution with Wiznet module on teensy

Open stephanschulz opened this issue 5 years ago • 3 comments

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.

stephanschulz avatar Nov 25 '19 21:11 stephanschulz

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.

adelin-mcbsoft avatar Nov 26 '19 07:11 adelin-mcbsoft

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:

  1. Implement the interfaces TcpClient and TcpServer for your board. Here is an example implementation of esp32 client and server (client uses this generic esp code)
  2. Register it in ws_common.hpp. Meaning: add a #elif defined for 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.

gilmaimon avatar Nov 26 '19 20:11 gilmaimon

Thanks for those tips. I will certainly give it a try and keep everyone updated here.

stephanschulz avatar Nov 26 '19 20:11 stephanschulz