Rate This Document
Findability
Accuracy
Completeness
Readability

Data Injection

The InjectData API needs to be invoked for data input. You can specify data using the SENSOR_SEND_SENSOR_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_SENSOR;
VmiCmd cmd = SENSOR_SEND_SENSOR_DATA;
SensorData sensorData;
uint8_t* data = &sensorData;
InjectData(module, cmd, data, sizeof(SensorData));