通过蓝牙低功耗进行 1-to-1 聊天
screen0 | screen1 | screen2 | screen3 | screen4 | screen5 |
---|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
/**
* UUID of the Chat Server service
*/
extern NSString *const BCChatServiceUUID;
/**
* UUID of the Characteristic for the central to send messages to the peripheral. Write only. The data is UTF8 encoded text.
*/
extern NSString *const BCChatCentralToPeripheralCharacteristicUUID;
/**
* UUID of the Characteristic for the peripheral to send messages to the central. Indicate and Read. The data is UTF8 encoded text.
*/
extern NSString *const BCChatPeripheralToCentralCharacteristicUUID;
/**
* UUID of the Characteristic for the peripheral to tell the central to disconnect. Indicate and Read. The data is a one-byte integer and the value is not checked by the central.
*/
extern NSString *const BCChatPeripheralToCentralDisconnectRequestCharacteristicUUID;
请检查 BCConstants.m 以获取 UUIDs。