新手刚刚开始搞CC2541开发,今天看Keyfob的源代码,看到keyfobdemo.c里面,KeyFobApp_Init()把外设都注册成为了GATT服务,请问是不是可以这样理解,keyfob把从key、acc、batt等外设读取的数据都通过GATT发送出去了?
DevInfo_AddService(); // Device Information Service,
ProxReporter_AddService( GATT_ALL_SERVICES ); // Proximity Reporter Profile
Batt_AddService( );// Battery Service
Accel_AddService( GATT_ALL_SERVICES );// Accelerometer Profile
SK_AddService( GATT_ALL_SERVICES );// Simple Keys Profile