send method

void send(
  1. int idx,
  2. int bUpdate
)

Implementation

void send(int idx, int bUpdate) {
  final p = malloc<PERIPHERAL_USER_REMINDER_CONTEXT>();
  p.ref.hour = hour;
  p.ref.minute = minute;
  name.toCArray(p.ref.name);
  p.ref.weekday = weekday;
  p.ref.bRepeatDaily = bRepeatDaily;
  clingNative.cwsSetNewUserReminder(p, idx, bUpdate);
  malloc.free(p);
  clingNative.cwsSendNewUserReminder();
}