lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] REST API on microcontroller with lwIP


From: Marco Giammarini
Subject: Re: [lwip-users] REST API on microcontroller with lwIP
Date: Mon, 1 Feb 2021 18:14:46 +0100

You mean genfiles_example/genfiles_example.c? But, how can I use this code with CGI reply?

Il giorno 1 feb 2021, alle ore 18:02, Adam Baron <vysocan76@gmail.com> ha scritto:

Hello, 
there is example already provided on how to create a file at runtime. It works well, I have httpd basically generating all my html on the fly. 

On Mon, Feb 1, 2021, 5:49 PM Marco Giammarini <m.giammarini@gmail.com> wrote:
Dear all,
I am using lwIP over K64 (NXP microcontroller) and I would add REST API to my project.
I try to understand how to do that, and the only way that I have found is to use CGI. The problem is the reply: I can reply only with a static file present in the SDCARD (the return of the callback function tCGIHandler is the address of the file).

Does someone implemented REST API with LwIP?
Does someone return a JSON build at runtime?
Does someone parse a GET REST request build with / and not with &? How?  I mean api/test/1/3 instead of api/test.cgi?arg=1&subarg=3

 

Thanks
Marco
_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]