int result = BLUETOOTH_ERROR_NONE;
struct gatt_server_req_info *req_info = NULL;
bluetooth_device_address_t dev_addr;
- char adress[BT_ADDRESS_STRING_SIZE] = {'/0',};
+ char address[BT_ADDRESS_STRING_SIZE] = { 0 };
BT_INFO("GATT Server ACQUIRE Write Req Connection ID: [%d]", event->attr_trans.conn_id);
BT_INFO("GATT Server ACQUIRE Write Req Transaction ID:[%d]", event->attr_trans.trans_id);
BT_INFO("GATT Server ACQUIRE Write Req Attribute Handle: [%d]", event->attr_trans.attr_handle);
- //adress = g_malloc0(BT_ADDRESS_STRING_SIZE);
+ //address = g_malloc0(BT_ADDRESS_STRING_SIZE);
memcpy(dev_addr.addr, event->address.addr, 6);
req_info = g_new0(struct gatt_server_req_info, 1);
req_info->request_type = BLUETOOTH_GATT_REQUEST_TYPE_ACQUIRE_WRITE;
gatt_server_requests = g_slist_append(gatt_server_requests, req_info);
- _bt_convert_addr_type_to_string(adress,
+ _bt_convert_addr_type_to_string(address,
(unsigned char *)dev_addr.addr);
param = g_variant_new("(iiiiiis)", result,
event->attr_trans.conn_id,
event->attr_trans.trans_id,
event->attr_trans.attr_handle,
- event->mtu, event->attr_trans.offset, adress);
- BT_INFO("GATT Server ACQUIRE Write Req Attribute remote adress : [%s]", adress);
+ event->mtu, event->attr_trans.offset, address);
+ BT_INFO("GATT Server ACQUIRE Write Req Attribute remote address : [%s]", address);
_bt_send_event(BT_GATT_SERVER_EVENT,
BLUETOOTH_EVENT_GATT_SERVER_ACQUIRE_WRITE,