REST API on STM32F4 with lwIP
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-02-01 6:47 AM
Dear all,
I am using lwIP over STM32F4 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 following function is the address of the file.
typedef const char *(*tCGIHandler)(int iIndex, int iNumParams, char *pcParam[],char *pcValue[]);
Does someone return a JSON build at runtime?
Does someone parse a GET REST request build with / and not with &? How?
api/test/1/3 indeed of api/test.cgi?arg=1&subarg=3
Thanks
Laura
Labels:
- Labels:
-
Ethernet
-
STM32F4 Series
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2024-10-13 7:22 PM
Hello, can you correctly use restful? I hope you can give me some ideas and methods
Thanks
Laura
