There are two usage options:
idf.py add-dependency igrr/libnmea==required_versionin your project directory.
componentsdirectory of your project, or add it as a submodule. See libnmea documentation for more details.
This component uses CMake build system. It works with ESP-IDF v3.3 and v4.x.
Example project is provided inside
example directory. It works the same way
parse_stdin.c example from libnmea, except that it reads NMEA sentences
Connect the TXD pin of GPS receiver to GPIO21 of an ESP32 board. For other chips (ESP32-S2, ESP32-C3), change the pin number to any free GPIO.
Build and flash the example. Decoded NMEA messages will be displayed in the console.
libnmea, this component, and the example project are licensed under MIT License.