Insert_NMEA()
Description
Insert NMEA messages to core parser.
Syntax
Insert_NMEA(buffer[], length);
Parameters
Variable | Input |
|---|---|
| Data which will be written to NMEA parser |
| Number of data bytes |
Returns
Return value | Return explanation |
SCRIPT_OPERATION_SUCCESS | Success |
SCRIPT_OPERATION_FAILED | Failed |
Function call example
new buffer[200];
main()
{
strcopy(buffer, "$GNRMC,105014.000,A,5456.041669,N,02353.088859,E,14.46,346.19,050120,,,A*44");
for(;;)
{
Insert_NMEA(buffer, strlen(buffer));
Delay(1000);
}
}Notes and Warnings
In device configuration (settings template) Function value must be set to “NMEA from script” in <Settings> → Hardware → GNSS → GNSS settings → Function value. (refer to picture below)