BLE 学习小结

  1. GAP 和 GATT
    https://www.youtube.com/watch?v=yKJtnkEjPFI
    BLE 学习小结_第1张图片
    GAP: Generic Access Profile. 定义的是Scanner跟Advertiser的角色。负责连接相关的服务 (设备的搜寻,用来建立连接,连接的管理,等)。
    GATT: Generic Attribute Profile. 定义的是Client跟Server的资料及功能。规范低功耗蓝牙设备之间资料的交换(交换的procedure,资料的格式等)。
    GATT定义的procedure:
     - discovering services and characteristics
     - reading/writing characteristics
     - notifying and indicating charactersitics
     - configuring the broadcasting of characteristics
    GATT定义的资料格式
    • 服务(Services)
    • 资料值(Characteristics)

你可能感兴趣的:(蓝牙)