send method

void send()

Implementation

void send() {
  final p = malloc<PERIPHERAL_GOGPS_UPDATA>();
  p.ref.timestamp = timestamp;
  p.ref.secondindex = secondindex;
  p.ref.speed = speed;
  p.ref.longitude = longitude;
  p.ref.latitude = latitude;
  p.ref.altitude = altitude;
  p.ref.distance_km = distance_km;
  p.ref.distance_km_max = distance_km_max;
  p.ref.heartrate = heartrate;
  p.ref.stamina = stamina;
  p.ref.stamina_aerobic = stamina_aerobic;
  p.ref.stamina_anerobic = stamina_anerobic;
  p.ref.kcal = kcal;
  p.ref.kcal_max = kcal_max;
  p.ref.cadance = cadance;
  malloc.free(p);
}