I have a gps device that records data, for example. datetime, latitude, longitude
I have sdk that reads data from a device. The way to read data:
A command packet (basically a combination of int values in the structure) is sent to the device. The device responds with data in blocks of a fixed size, for example. 64bytes
Depending on the issued command, I will return to different data structures, for example, sending command 1 to the device returns a structure of type
struct x
{
id int,
name char[20]
}
command 2 returns a collection of the following structures (basically it comes down to an array of structures - y [12])
struct y
{
date datetime,
lat decimal,
lon decimal
}
Then I would like to convert the structure to a class and store the data in a database.
, ?