Links2004 / arduinoWebSockets

arduinoWebSockets
GNU Lesser General Public License v2.1
1.88k stars 556 forks source link

Q: M0 Support? #210

Open andholz opened 7 years ago

andholz commented 7 years ago

Any chance to add SAMD21 Cortex-M0+ Support? The M0 + WINC1500 like on the Adafruit Feather and MKR1000 are very good for some projects. Would be great to add WS support... Cheers!

Links2004 commented 7 years ago

if there is a Arduino port for the SAMD21 and a lib with the "standard" arduino network classes for the WINC1500 porting will be easy, only some defines and you are done.

basics are listet here: https://github.com/Links2004/arduinoWebSockets/issues/197#issuecomment-304502156

feel free to create a pull request if you get it working. if you run in some problems in the process fell free to ask here.

CodyWalker commented 6 years ago

Unfortunately it looks like the SAMD Arduino Core doesn't link libstdc++ by default for some reason. This prevents the library from building right out of the box for anyone using the Adafruit or Arduino SAMD cores.

I went into my platform.txt and added it to my linker flags. This got arduinoWebSockets building but even after setting up the Client and Server classes it doesn't seem to work. I think the Wifi101 implementation might not act quite like the Arduino API.

This will probably need attention from someone who knows what they are doing.