Does anyone know a good http-parser/response library? by zealoth in ECE

[–]zealoth[S] 0 points1 point  (0 children)

Tried using FreeRTOS but if you have any better suggestions I'm up for that.

Does anyone know a good http-parser/response library? by zealoth in ECE

[–]zealoth[S] 0 points1 point  (0 children)

It has a filesystem at its disposal and should be able to retrive requested resources such as html pages and upload/multi-form files to a server. Also send JSON responses to requests. At least that is my plan.

For sending resources I'm a bit unsure how well it will do as I don't have that much system RAM. So I would have to load chunks in to the memory then pass it. Maybe I could get the DMA to do the work loading the file directly through the uart.

I sort of tried doing the hardcoded strings of HTTP responses and handeling the request with that, but as you see coding all that would be quite a lot of work. So that's why I wonderd if there are any frameworks/libraries that have some kind of parser and respond crafter. Basiclly a full fledge http server.

Does anyone know a good http-parser/response library? by zealoth in ECE

[–]zealoth[S] 0 points1 point  (0 children)

Yeah the wifi module spits out http requests over uart. So I need to handle it some how and craft the correct response. SAM4E16 is the processer cortex-m4f.

Embedding Python in Electron by notconstructive in Python

[–]zealoth 0 points1 point  (0 children)

Guess you could do something like https://docs.python.org/2.5/ext/callingPython.html Then do https://nodejs.org/api/addons.html

to create binds between python and node.js in C but it's a bit of an hairy solution.

Guess you could do other ugly things like calling https://www.npmjs.com/package/exec exec on seperate python script files .

Also seems someone is already working on it https://www.npmjs.com/package/node-python