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.
56 lines
1.9 KiB
56 lines
1.9 KiB
![]()
2 years ago
|
//
|
||
|
// Const.h
|
||
|
// BluetoothDemo
|
||
|
//
|
||
|
// Created by mac on 17/3/10.
|
||
|
// Copyright © 2017年 . All rights reserved.
|
||
|
//
|
||
|
|
||
|
#ifndef Const_h
|
||
|
#define Const_h
|
||
|
|
||
|
//========= 蓝牙库使用的宏
|
||
|
|
||
|
/** 各平台蓝牙 UUID */
|
||
|
#define ServicesUUID @"C3E6FBC0-E966-1000-8000-BE99C223DF6A"
|
||
|
#define WirtecharacteristicUUIDString @"C3E6FEA1-E966-1000-8000-BE99C223DF6A"
|
||
|
#define NotifycharacteristicUUIDString @"C3E6FEA2-E966-1000-8000-BE99C223DF6A"
|
||
|
|
||
|
|
||
|
/** 蓝牙数据拼接分隔符 */
|
||
|
#define DataSeparator @"!@#$"
|
||
|
|
||
|
/** 获取手机系统宏 */
|
||
|
#define DEVICEVERSION [[UIDevice currentDevice].systemVersion floatValue]
|
||
|
|
||
|
/** 蓝牙ServicesUUID */
|
||
|
#define BraceletServicesUUID @"FBC0"
|
||
|
#define DFUMASString @"DFUMASString" // dfu模式下的mac地址
|
||
|
#define DFUFirmwareUpdatePath @"DFUFirmwareUpdatePath" // dfu固件升级包本地路径
|
||
|
|
||
|
// FRQ OTA特定的服务标识
|
||
|
#define kFRQServiceUUID @"02F00000-0000-0000-0000-00000000FE00"
|
||
|
#define kFRQWriteCharacteristicUUID @"02F00000-0000-0000-0000-00000000FF01"
|
||
|
#define kFRQReadCharacteristicUUID @"02F00000-0000-0000-0000-00000000FF02"
|
||
|
|
||
|
/** 同步蓝牙数据刷新界面 */
|
||
|
#define SycnDatas @"sycnDatas"
|
||
|
/** 保存上一次自动断开的设备uuid做重连使用 */
|
||
|
#define AutomaticReconnectionDevice @"AutomaticReconnectionDevice"
|
||
|
// 代理实现
|
||
|
#define IsDelegate(delegate,method) delegate != nil && [delegate respondsToSelector:@selector(method)]
|
||
|
/** 设备控制指令通知 */
|
||
|
#define DeviceControlNotification @"DeviceControlNotification"
|
||
|
/// 设备实时上报健康数据通知
|
||
|
#define DeviceReportRealTimeHealthData @"DeviceReportRealTimeHealthData"
|
||
|
///** 实时心率数据 */
|
||
|
//#define RealtimeRefreshHeartData @"RealtimeRefreshHeartData"
|
||
|
///** 刷新血压通知 */
|
||
|
//#define RefreshBloodPressure @"RefreshBloodPressure"
|
||
|
///** 刷新血氧通知 */
|
||
|
//#define RefreshBloodOxygen @"RefreshBloodOxygen"
|
||
|
/// FRQ OTA上报数据通知
|
||
|
#define FRQReadCharacteristicUUIDNotify @"FRQReadCharacteristicUUIDNotify"
|
||
|
|
||
|
#endif /* Const_h */
|