Write Immediate Alert after discovering handle

Write the Immediate Alert level characteristic if there is a pending
alert value to be written after discovering the characteristic handle.
This commit is contained in:
Claudio Takahasi 2011-08-08 15:46:44 -03:00 committed by Johan Hedberg
parent 3aa6ac9726
commit b5a72304ac

View File

@ -273,6 +273,9 @@ static void immediate_handle_cb(GSList *characteristics, guint8 status,
monitor->immediatehandle = chr->value_handle;
DBG("Immediate Alert handle: 0x%04x", monitor->immediatehandle);
if (monitor->fallbacklevel)
write_immediate_alert(monitor);
}
static void discover_immediate_handle(struct monitor *monitor)