Closed stisa closed 4 years ago
Great! Hope to try this out soon. It might be a good idea to make a raw socket handler HTTP server version.
P.S. Would you also be interested in helping with a Nim library to wrap FreeRTOS primitives? I've not done too much programming with esp-idf
but most of the FreeRTOS API isn't too complicated. I've actually already wrapped a fair bit of the core FreeRTOS stuff, but it'd be great to have someone else help with checking it and whatnot. Actually, it'd be pretty easy to get the basics for ethernet, wifi, logging wrapped up pretty quickly. Do you know the best way to create a Nim library, like using Nimble?
P.S. Would you also be interested in helping with a Nim library to wrap FreeRTOS primitives?
I would be interested yeah, although I'm not very experienced and I only have one board, but it would be cool to improve support so whatever I can do 👍 . Worst case, I'll learn or ask for help.
Do you know the best way to create a Nim library, like using Nimble?
I guess nimble init
is the recommended way, but I usually just use this https://github.com/stisa/nimbasepkg, click use template, then clone it somewhere and run nimble develop
in it, then I think you can nimble publish
to send the pr to the package list, or just open the pr yourself.
What did you have in mind? A esp
nimble package with a module per header?
Also, I'd like to find out what idf.py
does exactly and port that to nim, so I can use a normal terminal powershell terminal instead of the cmd they make me open on windows
A basic example that connects to wifi and starts an http server. The c code is a little hacked together, but it seems to work.
Still crashes after a few requests, probably due to ARC: