diff options
author | Zduniusz <31253374+Zduniusz@users.noreply.github.com> | 2023-04-15 04:42:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-15 12:42:28 +1000 |
commit | 7b7e77b71449f76c262dc247785c15c6220cf890 (patch) | |
tree | bde6c303640e78293faa4f306e1dc85f64d98fb7 /README.md | |
parent | cf8c10c71a73f42b8ed113f823b4ae60db692d8a (diff) | |
download | libwifi-7b7e77b71449f76c262dc247785c15c6220cf890.tar.gz libwifi-7b7e77b71449f76c262dc247785c15c6220cf890.tar.bz2 libwifi-7b7e77b71449f76c262dc247785c15c6220cf890.zip |
Add support for ESP32 (#17)
* Add support for ESP32 * core: Check length of body before allocating Frames with no body may be worth parsing, but should avoid the allocation of zero-length bodies. Instead, we'll check if the body exists in the parsed data and if that length is zero, return early with success. Fixes #16 * misc: Run GitHub build actions on pull requests * Add support for ESP32 --------- Co-authored-by: Zduniusz <Zduniusz@thisemaildoesnotexist.com> Co-authored-by: Marc <marc@malloc.me>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/README.md b/README.md index 542c061..0f5f6c4 100644 --- a/README.md +++ b/README.md | |||
@@ -59,3 +59,17 @@ $ cmake .. | |||
59 | $ make | 59 | $ make |
60 | ``` | 60 | ``` |
61 | 61 | ||
62 | ## ESP32 | ||
63 | This project has been configured to be easily applicable as ESP-IDF component | ||
64 | |||
65 | ### Steps to include (Example) | ||
66 | |||
67 | 1. Put `libwifi` folder in `components/` | ||
68 | 2. Open `main/CMakeLists.txt` and add `libwifi` to `COMPONENT_REQUIRES` | ||
69 | 3. In `main/main.c` add `#include "libwifi.h"` | ||
70 | 4. Test by running following code: ``` | ||
71 | ```C | ||
72 | void app_main(void){ | ||
73 | printf("libwifi version: %s", libwifi_get_version()); | ||
74 | } | ||
75 | ``` \ No newline at end of file | ||