send method

void send()

Implementation

void send() {
  final p = malloc<PERIPHERAL_DEVICE_CONFIG_CONTEXT>();
  p.ref.PPGDayIntervalMilliSec = PPGDayIntervalMilliSec;
  p.ref.PPGNightIntervalMilliSec = PPGNightIntervalMilliSec;
  p.ref.SkinTempDayIntervalMilliSec = SkinTempDayIntervalMilliSec;
  p.ref.SkinTempNightIntervalMilliSec = SkinTempNightIntervalMilliSec;
  p.ref.bUIScreenActivateWristFlip = bUIScreenActivateWristFlip;
  p.ref.bUIScreenActivatePressHold1s = bUIScreenActivatePressHold1s;
  p.ref.bUIScreenActivatePressHold3s = bUIScreenActivatePressHold3s;
  p.ref.bUIScreenTapping = bUIScreenTapping;
  p.ref.bUINavigationTapping = bUINavigationTapping;
  p.ref.bUINavigationWristShaking = bUINavigationWristShaking;
  p.ref.bReminderOffWeekends = bReminderOffWeekends;
  p.ref.idleAlertTimeInMinutes = idleAlertTimeInMinutes;
  p.ref.idleAlertTimeStart = idleAlertTimeStart;
  p.ref.idleAlertTimeEnd = idleAlertTimeEnd;
  p.ref.screenOnTimeGeneral = screenOnTimeGeneral;
  p.ref.screenOnTimeHeartRate = screenOnTimeHeartRate;
  p.ref.sleepSensitivity = sleepSensitivity;
  p.ref.stepSensitivity = stepSensitivity;
  p.ref.vocSampleRate = vocSampleRate;
  p.ref.alcoholSensitivity = alcoholSensitivity;
  p.ref.cityname_len = _cityname_len;
  p.ref.cityname = cityname.toNativeUtf8();
  p.ref.hrbroadcast = hrbroadcast;
  p.ref.touchEnable = touchEnable;
  p.ref.autoBPEnable = autoBPEnable;
  p.ref.autoBOEnable = autoBOEnable;
  clingNative.cwsConfigureDevice(p);
  malloc.free(p);
  clingNative.cwsSetupDevice();
}