# Example1_GNSS_RMC ESP-IDF version of the Arduino example [Example1_GNSS_RMC.ino](../../examples/Example1_GNSS_RMC/Example1_GNSS_RMC.ino). This example shows how to read the GNSS position, velocity and time from the RMC message. The RMC message is stored in the module memory (AT+UGNMEA="RMC",1,1) and polled with getNMEA. (The SARA-R5 library used AT+UGRMC. +UGRMC is deprecated on the 9604. See the NMEA examples for the general approach - including callbacks.) ## Hardware * An ESP32 (or other ESP-IDF target) connected to the Iridium 9604 via a UART * Connect: ESP32 TX to 9604 RXD; ESP32 RX to 9604 TXD; GND to GND * Optionally connect RTS / CTS (hardware flow control) and PWR_ON ## Building ``` idf.py set-target esp32 idf.py menuconfig # "Example Configuration": UART port, baud rate and GPIO pins idf.py -p PORT flash monitor ``` `main/idf_component.yml` points at the library in this repository (`override_path: "../../../"`).
To create a project from this example, run:
idf.py create-project-from-example "sparkfun/sparkfun_iridium_9604_library=1.0.0:Example1_GNSS_RMC"