From 7b7e77b71449f76c262dc247785c15c6220cf890 Mon Sep 17 00:00:00 2001 From: Zduniusz <31253374+Zduniusz@users.noreply.github.com> Date: Sat, 15 Apr 2023 04:42:28 +0200 Subject: 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 Co-authored-by: Marc --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 542c061..0f5f6c4 100644 --- a/README.md +++ b/README.md @@ -59,3 +59,17 @@ $ cmake .. $ make ``` +## ESP32 +This project has been configured to be easily applicable as ESP-IDF component + +### Steps to include (Example) + +1. Put `libwifi` folder in `components/` +2. Open `main/CMakeLists.txt` and add `libwifi` to `COMPONENT_REQUIRES` +3. In `main/main.c` add `#include "libwifi.h"` +4. Test by running following code: ``` +```C +void app_main(void){ + printf("libwifi version: %s", libwifi_get_version()); +} +``` \ No newline at end of file -- cgit 1.4.1