the error: "too many captures"
Here is the code:
str = "$GPRMC,005009.00,A,556.33250,N74137.05197,W,0.542,,050315,,,A*69"
time, status, latitude, ns_indicator, longitude,
ew_indicator, speed, course, date, variation,
ew_variation, checksum = string.match(str, "^%$GPRMC,([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^,]*),([^%*]*)(.*)$")
print(longitude)I think I can split it somehow, but im unsure if i can do it or how to do it.
I really only need the longitude and the latitude information but its nice to have the rest aswell.
If anyone knows how to solve my problem, please clue me in on how to fix it.
-Nick