[PATCH BlueZ 10/11] Write Immediate Alert if connected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When SetProperty for ImmediateAlertLevel is called, write operation to
update the characteristic in the Immediate Alert Service can be sent
if the connection is established.
---
 proximity/monitor.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/proximity/monitor.c b/proximity/monitor.c
index 2133ad7..b59e7a0 100644
--- a/proximity/monitor.c
+++ b/proximity/monitor.c
@@ -432,6 +432,8 @@ static DBusMessage *set_immediate_alert(DBusConnection *conn, DBusMessage *msg,
 							attio_connected_cb,
 							attio_disconnected_cb,
 							monitor);
+	else if (monitor->attrib)
+		write_immediate_alert(monitor);
 
 	return dbus_message_new_method_return(msg);
 }
-- 
1.7.6

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux