Category: OSS

  • http_client

    http_client

    An ESP-IDF component for Physical Computing Purpose An HTTP client for ESP32 systems. This HTTPClient is a copy of the HTTPClient from sachin42/idfcomponents. The only change is that now it is allowed to use method addHeader to set header “Authorization”. The original code can be found in GitHub: https://github.com/sachin42/idfcomponents.git in directory HTTPClient. How it is done…

  • http_config_server

    http_config_server

    An ESP-IDF component for Physical Computing Purpose Enter configuration parameters on a web page and store it in NVS flash memory for ESP32 systems. How it is done You need to includehttp_config_server.hpp. After establishing a Wifi connection the HttpConfigServer class can be used. Where to find it http_config_server is published on the ESP Registry at https://components.espressif.com/components/elrebo-de/http_config_server. The…

  • shelly_plug

    shelly_plug

    An ESP-IDF component for Physical Computing Purpose Operate a Shelly Plug from an ESP32 system. How it is done You need to include shelly_plug.hpp. Then you define an instance of class ShellyPlug. In the constructor of the class you define the IP address of the shelly plug. Now you can use the method Switch to switch it on…

  • hcsr04_sensor

    hcsr04_sensor

    An ESP-IDF component for Physical Computing Purpose Distance measurement with an HCSR04 sensor for ESP32 systems. How it is done Distance measurement is implemented as a simple C++ class Hcsr04Sensor. It has one public method GetDistance, which returns the measured distance as a float. Where to find it hcsr04_sensor is published on the ESP Registry…

  • generic_nvsflash

    generic_nvsflash

    An ESP-IDF component for Physical Computing Purpose Read and write data in non-volatile flash storage on ESP32 systems. This data is still available after the device is restarted. How it is done You need to include generic_nvsflash.hpp. Then you define an instance of class GenericNvsFlash. In the constructor of the class you state the namespace to use and…

  • i2c_master

    i2c_master

    An ESP-IDF component for Physical Computing Purpose Define an I2C bus master and add I2C devices for ESP32 systems. How it is done You need to include i2c_master.hpp. Then you define the I2C bus master by defining an instance of class I2cMaster. For every I2C device you define an instance of class I2cDevice and add it to…

  • time_sync

    time_sync

    An ESP-IDF component for Physical Computing Purpose Time synchronization for ESP32 systems. How it is done You need to include time_sync.hpp and provide a function timeTask for the task which synchronizes the time periodically. After establishing a Wifi connection the TimeSync class must be initialized and the timeTask must be started. From then on the time will be synchronized. Where to…

  • onboard_led

    onboard_led

    An ESP-IDF component for Physical Computing Purpose Functionality to use the onboard LED of ESP32 systems. How it is done ESP32 boards normally have an OnBoard LED. Depending on the board this can be a normal LED (e.g. a blue one) or an LED strip, where the color and intensity can be set. Class OnBoardLed…

  • generic_button

    generic_button

    An ESP-IDF component for Physical Computing Purpose Generic Button functionality for ESP32 systems. How it is done For every button you want to use, you have to For every button event you want to detect, you have to When one of the registered events occurs, the corresponding callback function is triggered. Where to find it…

  • deep_sleep

    deep_sleep

    An ESP-IDF component for Physical Computing Purpose Deep Sleep functionality for ESP32 systems. Wakeup sources can be: How it is done A simple Deep Sleep functionality is implemented through class DeepSleep. If wakeup from Deep Sleep shall be triggered by a timer the method EnableTimerWakeup has to be called. If wakeup from Deep Sleep shall…