Search found 7 matches

by kraxor
Wed Aug 18, 2021 3:21 pm
Forum: General Discussion
Topic: switch like BT_ENABLED but for WiFi?
Replies: 0
Views: 2154

switch like BT_ENABLED but for WiFi?

Hi everyone,

Just wondering... is there a similar switch to BT_ENABLED but for WiFi? A single value that I can turn off in sdkconfig to disable WiFi or maybe networking alltogether?

Cheers
by kraxor
Wed Aug 18, 2021 3:14 pm
Forum: General Discussion
Topic: embedded client server
Replies: 9
Views: 7374

Re: embedded client server

Hi, I'm currently working on a framework that includes a HTTP server that you can use like so: using namespace kbf; http::Response handleHello(const http::Request &request, void *) { return http::Response("<html><body>hello!</body></html>", 200); } int main() { wifi::ap::start(SSID, PASS); auto serv...
by kraxor
Tue Apr 27, 2021 10:17 am
Forum: ESP-IDF
Topic: /main.c:20:10: fatal error: esp_https_server.h: No such file or directory
Replies: 2
Views: 6509

Re: /main.c:20:10: fatal error: esp_https_server.h: No such file or directory

Also don't forget you need to require it in CMakeLists.txt:

Code: Select all

idf_component_register(
        SRCS
...
        REQUIRES
        "esp_https_server"
)
by kraxor
Sun Apr 25, 2021 6:28 am
Forum: ESP-IDF
Topic: gpio_install_isr_service() returns ESP_ERR_NOT_FOUND
Replies: 5
Views: 9940

Re: gpio_install_isr_service() returns ESP_ERR_NOT_FOUND

Hi, I'm not using the ov2645 camera but came across the same error while implementing a class that uses interrupts. Sharing my experience here because there aren't many great google results out there. Consider this: class MyClass { // constructor calls gpio_install_isr_service() } MyClass *instance1...
by kraxor
Wed Jan 27, 2021 6:01 am
Forum: ESP-IDF
Topic: Multi-Device Test Cases: unity_send_signal() and unity_wait_for_signal() not working
Replies: 2
Views: 3153

Re: Multi-Device Test Cases: unity_send_signal() and unity_wait_for_signal() not working

So I implemented my own signal functions. Note that I'm using C++ but the concept is the same for C. #include <unity.h> #include <iostream> #include <string> #include <driver/gpio.h> #include <driver/uart.h> #define MASTER_GPIO_PIN GPIO_NUM_27 #define SLAVE_GPIO_PIN GPIO_NUM_27 using std::cout; usin...
by kraxor
Wed Jan 27, 2021 4:07 am
Forum: ESP-IDF
Topic: Multi-Device Test Cases: unity_send_signal() and unity_wait_for_signal() not working
Replies: 2
Views: 3153

Re: Multi-Device Test Cases: unity_send_signal() and unity_wait_for_signal() not working

I tried to do the same, got the same results. As far as I can tell, an internal TEST_ASSERT_NOT_NULL fails somewhere, but strangely it doesn't print the line number or anything, so I gave up. The way I see it, most of the testing features in IDF are supposed to be used internally, and / or to test I...
by kraxor
Wed Jan 13, 2021 12:48 pm
Forum: ESP-IDF
Topic: arduino-esp32 IDF component build failure
Replies: 9
Views: 16210

Re: arduino-esp32 IDF component build failure

For anyone else landing here in 2021: The master branch of esp32-arduino won't build with newer esp-idf versions (e.g. 4.2). If you're getting the "Failed to resolve component 'ethernet'." error, you'll probably want to switch to a branch that supports your esp-idf version: cd /path/to/esp32-arduino...