m93g0105 发表于 2015-6-11 14:00:58

Gatt DB Format

請問各位大神:

ADK3.0裡的Sink_gatt_bas_db.h


/* GATT Battery Service Database to be registered with GattInit() */
const uint16 battery_service_database[] = {
    /* 0001: Primary Service 180f */
    0x0002, 0x0f18,
    /* 0002: Characteristic Declaration 2a19 */
    0x3005, 0x1203, 0x0019, 0x2a00,
    /* 0003: . */
    0xd401, 0x0000,
    /* 0004: Client Characteristic Configuration */
    0x6c00,
};

除了2a190x0019, 0x2a00()是 GATT_CHARACTERISTIC_UUID_BATTERY_LEVEL
及180f(0x0f18)是 GATT_SERVICE_UUID_BATTERY_SERVICE

其他的是代表什麼意思呢?
页: [1]
查看完整版本: Gatt DB Format