Search found 8 matches

by ryanf55
Fri Jan 29, 2021 4:48 am
Forum: ESP-IDF
Topic: Change Partition Subtype during runtime
Replies: 10
Views: 15070

Re: Change Partition Subtype during runtime

I've implemented a similar version of this, but doesn't require you to wait for two OTA cycles for it to work. I have it almost complete, but need to copy the current running partition's data to a different partition. I know I need to use esp_partition_read() and esp_partition_write(), but could use...
by ryanf55
Thu Aug 27, 2020 5:10 pm
Forum: ESP-IDF
Topic: How to include cJSON?
Replies: 3
Views: 10331

Re: How to include cJSON?

Thank you, yes have a few of my own components that are needing cJSON. Your suggestions worked. For anyone else needing assistance, here's the contents of the cv_server CMakeLists.txt, noting the addition of requiring json. idf_component_register(SRCS "cv_server.c" INCLUDE_DIRS "include" REQUIRES es...
by ryanf55
Thu Aug 27, 2020 7:06 am
Forum: ESP-IDF
Topic: How to include cJSON?
Replies: 3
Views: 10331

How to include cJSON?

Hello,

I am using ESPIDFv4.0 and would like to include cJSON. None of the following work:

#include <cJSON/cJSON.h>
#include <cJSON.h>
#include <json/cJSON/cJSON.h>

What do I need to use in order to use cJSON in my code?
by ryanf55
Wed May 13, 2020 6:51 pm
Forum: ESP-IDF
Topic: ESP IDF: Station + soft-AP (WIFI_MODE_APSTA) There is no working example - why? Where is?
Replies: 41
Views: 74168

Re: ESP IDF: Station + soft-AP (WIFI_MODE_APSTA) There is no working example - why? Where is?

In follow up to my previous post, adding in a few time delays between tearing down AP and starting STA helped. Also, I turned off nvs_flash for WiFi as I think that was causing the corruption when starting in STA mode. Here's my menuconfig changes. [OFF ] Wi-Fi -> WiFi NVS flash [OFF] Phy ->Store ph...
by ryanf55
Thu May 07, 2020 7:08 am
Forum: ESP-IDF
Topic: ESP IDF: Station + soft-AP (WIFI_MODE_APSTA) There is no working example - why? Where is?
Replies: 41
Views: 74168

Re: ESP IDF: Station + soft-AP (WIFI_MODE_APSTA) There is no working example - why? Where is?

Has anyone seen inconsistencies in the WiFi behavior between ESP-WROOM-32 and ESP-WROOM-32D? When running this on ESP32-WROOM-32D, I get an exception error and it restarts during the transition from AP to STA modes. It's the same code on either module. Switching from softAP to station Onward! esp_wi...
by ryanf55
Tue May 05, 2020 2:16 am
Forum: ESP-IDF
Topic: ESP IDF: Station + soft-AP (WIFI_MODE_APSTA) There is no working example - why? Where is?
Replies: 41
Views: 74168

Re: ESP IDF: Station + soft-AP (WIFI_MODE_APSTA) There is no working example - why? Where is?

How should this be handled if the station ssid and password is unknown? I have set up my ESP32 to run in AP mode and allow entering config from a http server it generates (this is done). I do not require both STA and AP modes at the same time, so some explanation on how to bring the wifi down then ...
by ryanf55
Sun Mar 22, 2020 7:38 am
Forum: ESP-IDF
Topic: ESP IDF: Station + soft-AP (WIFI_MODE_APSTA) There is no working example - why? Where is?
Replies: 41
Views: 74168

Re: ESP IDF: Station + soft-AP (WIFI_MODE_APSTA) There is no working example - why? Where is?

How should this be handled if the station ssid and password is unknown? I have set up my ESP32 to run in AP mode and allow entering config from a http server it generates (this is done). I do not require both STA and AP modes at the same time, so some explanation on how to bring the wifi down then b...
by ryanf55
Sun Mar 22, 2020 7:25 am
Forum: ESP-IDF
Topic: Block access to web server on specified interface
Replies: 1
Views: 3918

Re: Block access to web server on specified interface

Do you use netconn_bind() when starting the server; that can be bound to a port and may accomplish what you need. I may have to do the same thing soon too so I will let you know if that does work. Is your code for station+AP public? I am working on that but am not sure how to handle turning on and o...