npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

ag-util-esp32

v0.1.0

Published

AG utilities ESP32

Readme

AG utilities ESP32

Example of creating a component. Ejemplo de creación de un componente.

idf.py create-component agexample

Example of including components in the CMakeLists.txt file at the root of an ESP32 project. Ejemplo de inclusión de componentes en el archivo CMakeLists.txt en la raíz de un proyecto ESP32.

# The following five lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.16)

set(EXTRA_COMPONENT_DIRS 
    ../ESP32-utilities
    ../ESP32-utilities/wifi
    ../ESP32-utilities/httpServer
    ${CMAKE_SOURCE_DIR}/node_modules/ag-util-esp32
    ${CMAKE_SOURCE_DIR}/node_modules/ag-util-esp32/wifi
    ${CMAKE_SOURCE_DIR}/node_modules/ag-util-esp32/httpServer
    ${CMAKE_SOURCE_DIR}/components)

include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(example)

Example of creating variables for the menuconfig of an ESP32 project. Ejemplo de creación de variables para el menuconfig de un proyecto ESP32

# main/Kconfig.projbuild

menu "Mi primer menu"

config USER_NAME
    string "Nombre de usuario"
    default "Andrés"
    help
        Nombre de usuario de pruebas para el código

config MY_EXAMPLE
    string "Opción de ejemplo #2"
    default "Otra"
    help
        Esta es otra opción de ejemplo para el código

endmenu

menu "Otro menu"

config MENU2_TEST_1
    string "Test #1"
    default "uno"
    help
        Esta es la primera del ejemplo #2

config MENU2_TEST_2
    string "Test #2"
    default "Dos"
    help
        Esta es la segunda del ejemplo #2

endmenu

Example of using variables created in the menuconfig. Ejemplo de uso de variables creadas en el menuconfig.

printf("Test #1: %s\n", CONFIG_USER_NAME);
printf("Test #2: %s\n", CONFIG_MY_EXAMPLE);
printf("Test #3: %s\n", CONFIG_MENU2_TEST_1);
printf("Test #4: %s\n", CONFIG_MENU2_TEST_2);