You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.2 KiB
42 lines
1.2 KiB
// |
|
// Const.h |
|
// BluetoothDemo |
|
// |
|
// Created by mac on 17/3/10. |
|
// Copyright © 2017年 . All rights reserved. |
|
// |
|
|
|
#ifndef Const_h |
|
#define Const_h |
|
|
|
//========= 蓝牙库使用的宏 |
|
|
|
///** 各平台蓝牙 UUID */ |
|
//#define ServicesUUID @"5833FF01-9B8B-5191-6142-22A4536EF123" |
|
//#define WirtecharacteristicUUIDString @"5833FF02-9B8B-5191-6142-22A4536EF123" |
|
//#define NotifycharacteristicUUIDString @"5833FF03-9B8B-5191-6142-22A4536EF123" |
|
|
|
|
|
/** 各平台蓝牙 UUID */ |
|
#define ServicesUUID @"00001802-0000-1000-8000-00805f9b34fb" |
|
#define WirtecharacteristicUUIDString @"00002a06-0000-1000-8000-00805f9b34fb" |
|
#define NotifycharacteristicUUIDString @"00002a06-0000-1000-8000-00805f9b34fb" |
|
|
|
/** 蓝牙数据拼接分隔符 */ |
|
#define DataSeparator @"!@#$" |
|
|
|
/** 获取手机系统宏 */ |
|
#define DEVICEVERSION [[UIDevice currentDevice].systemVersion floatValue] |
|
|
|
/** 蓝牙ServicesUUID */ |
|
#define BraceletServicesUUID @"0000ffe0-0000-1000-8000-00805f9b34fb" |
|
|
|
/** 保存上一次自动断开的设备uuid做重连使用 */ |
|
#define AutomaticReconnectionDevice @"AutomaticReconnectionDevice" |
|
|
|
// 代理实现 |
|
#define IsDelegate(delegate,method) delegate != nil && [delegate respondsToSelector:@selector(method)] |
|
|
|
#import "BluetoothTool.h" |
|
|
|
#endif /* Const_h */
|
|
|