Has anyone used MicroHTTPD?

Creating, porting and using libraries with Ultibo
User avatar
jgwinner
Posts: 3
Joined: Thu Jul 19, 2018 4:35 pm

Has anyone used MicroHTTPD?

Postby jgwinner » Mon Jul 23, 2018 5:34 pm

I need a very small, lightweight HTTP server.

Looking at https://www.gnu.org/software/libmicrohttpd/ it seems well documented, supported, and efficient.

Has anyone used this on Ultibo?

thank you,

== John ==
User avatar
Ultibo
Site Admin
Posts: 1932
Joined: Sat Dec 19, 2015 3:49 am
Location: Australia

Re: Has anyone used MicroHTTPD?

Postby Ultibo » Tue Jul 24, 2018 11:52 am

jgwinner wrote:Looking at https://www.gnu.org/software/libmicrohttpd/ it seems well documented, supported, and efficient.

Has anyone used this on Ultibo?

I don't know much about libmicrohttpd but if it is written to be portable and uses standard services (libc, pthreads, sockets etc) then it could be fairly easy to build for Ultibo without many changes.

Possibly the bigger question is what are your requirements?

Do you only want to serve files like html, css, js, images etc or do you want to do things like active content, database backend, websockets and media streaming?

There are quite a few small http servers around, Ultibo even includes one already that has more features than many, so what you need to do with it will probably guide your available choices.
Ultibo.org | Make something amazing
https://ultibo.org
develone
Posts: 272
Joined: Wed Dec 28, 2016 7:40 pm
Location: El Paso Tx USA

Re: Has anyone used MicroHTTPD?

Postby develone » Tue Jul 24, 2018 6:05 pm

I have several project at https://github.com/develone/Ultibo_Projects
This one below reads the uart which has a gps receiver sending data at 9600 baud
This one provides a webserver that Ultibo described
In addition this project will send the data to 2nd system
This project also supports using C code to compute the checksum of the message.
./libbuild.sh
Compiling checksum_ultibo.c
./libbuild.sh: line 5: [: =: unary operator expected
Not compiling with -D WR
Creating libgps.a
Tue 24 Jul 17:56:33 UTC 2018
-rw-r--r-- 1 pi pi 1208 Jul 24 17:56 checksum_ultibo.o
-rw-r--r-- 1 pi pi 1448 Jul 24 17:56 libgps.a
Before running Lazarus ./libuild.sh
tftp 192.168.1.214 < cmdstftp
tftp> tftp> Sent 2876856 bytes in 12.8 seconds


https://github.com/develone/Ultibo_Proj ... verGPS.lpi
Attachments
webserver.png
webserver.png (82.98 KiB) Viewed 126 times

Return to “Libraries”

Who is online

Users browsing this forum: No registered users and 0 guests