send method
Implementation
void send(int idx, int bUpdate) {
final p = malloc<PERIPHERAL_PILL_REMINDER_CONTEXT>();
p.ref.reminderId = reminderId;
p.ref.hour = hour;
p.ref.minute = minute;
name.toCArray(p.ref.name);
p.ref.weekday = weekday;
p.ref.bRepeatDaily = bRepeatDaily;
url.toCArray(p.ref.url);
clingNative.cwsSetPillReminder(p, idx, bUpdate);
malloc.free(p);
clingNative.cwsSendPillReminder();
}