" <interface name='org.bluez.GattCharacteristic1'>"
" <method name='ReadValue'>"
" <arg type='s' name='address' direction='in'/>"
-" <arg type='y' name='id' direction='in'/>"
+" <arg type='u' name='id' direction='in'/>"
" <arg type='q' name='offset' direction='in'/>"
" <arg type='ay' name='Value' direction='out'/>"
" </method>"
struct gatt_client_info_t *conn_info = NULL;
struct gatt_service_info *svc_info = NULL;
+ g_variant_get(parameters, "(&suq)",
+ &addr, &req_id, &offset);
+
+ DBG("Request id = %u, Offset = %u", req_id, offset);
DBG("Application path = %s", object_path);
DBG("Sender = %s", sender);
+ DBG("Address = %s", addr);
/* Check if device is already in connected list */
conn_info = __bt_find_remote_gatt_client_info(addr);
/* Convert address to hex */
_bt_hal_convert_addr_string_to_type(ev.bdaddr, addr);
-
event_cb(HAL_EV_GATT_READ_REQUESTED, (void *)&ev, sizeof(ev));
return;
} else if (g_strcmp0(method_name, "WriteValue") == 0) {