Data Injection
The InjectData API needs to be invoked for data input. You can specify data using the GPS_SEND_LOCATION_DATA command word in the VmiCmd enumeration and inject data to the server through the InjectData API. The following is an example:
VmiDataType module = DATA_GPS; VmiCmd cmd = GPS_SEND_LOCATION_DATA; VmiGpsLocationData locationData; uint8_t* data = &locationData; InjectData(module, cmd, data, sizeof(VmiGpsLocationData));
Parent topic: GPS Input Development