Nice stuff.
The API might be more convenient if you could (also) call it like:
demo.speed();
Or even:
demo.speed;
with a
demo.set("$GPRMC,001225,A,2832.1834,N,08101.0536,W,12,25,251211,1.2,E,A*03");
For those who want to provide another sentence than provided during class instantation.
This way the editor will help you avoid asking by accident for fields that do not exist (e.g. "attitude" instead of "altitude" ;-))
My 2cts :-)
Yeah, sounds like a good idea.
using demo.set()developers would have a way to change the sentence after class instantation
Yes, i want to set gets/sets for retrieving information
demo.speed
demo.heading
...
Thank you :)