- Fri Apr 10, 2015 8:58 pm
#14151
hreintke, you are absolutely right, it is correct way. One thing what Sming doesn't use underscores in names, better rename it to TCPServer and TCPServerConnection for compatiblity
I planned to add something like the httpserver.addpath (tcpserver.addreadcallback ?) so it can be made generic.
addPath needed because we have different handlers for differrent request paths. In tcp server, if no difference, you can pass callback argument as a constuctor parameter, like here:
https://github.com/anakod/Sming/blob/ma ... ient.h#L36But you can use methods if you want also, of course.
Is gen_appbin.exe a .net binary? Otherwise it won't run on Linux.
No, it's symlink with additional paths. Yes, of course, it isn't standard way, but why not?
Please find attached the complete example code to drive WS2812B RGB LEDs aka NeoPixel.
@anakod: Feel free to add it to the examples or make a WS2812 library from it.
Markus Gritsch,
It's really great work! I have not WS2812 so it's hard to test for me. May be you'll create library for that with simple small example and send pull-request on GitHub after that?