我要评分
获取效率
正确性
完整性
易理解

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:

1
2
3
4
5
VmiDataType module = DATA_GPS;
VmiCmd cmd = GPS_SEND_LOCATION_DATA;
VmiGpsLocationData locationData;
uint8_t* data = &locationData;
InjectData(module, cmd, data, sizeof(VmiGpsLocationData));