tinygo-org / drivers

TinyGo drivers for sensors, displays, wireless adaptors, and other devices that use I2C, SPI, GPIO, ADC, and UART interfaces.
https://tinygo.org
BSD 3-Clause "New" or "Revised" License
587 stars 182 forks source link

[gps] make the date available in addition to the time #532

Closed pmcanseco closed 1 year ago

pmcanseco commented 1 year ago

I was using the GPS driver and found that while getting the time out of the library worked great, I had no way to get the date. This PR references the spec present in the code comments for the RMC Sentence Type to grab the date and adds unit test coverage parsing for both time and date.

deadprogram commented 1 year ago

Thanks for the addition @pmcanseco now squashing/merging.