BabyBluetooth v0.6.0 Release Notes

Release Date: 2016-03-17 // almost 6 years ago
    • 修改了设置读取到Descriptors方法参数的bug
    • 修改了私有变量名 babyBluetooth.m中,私有变量babysiter改名为babyCentralManager
    • 根据代码规范优化了代码
    • 外设模式中,当未指定外设名称时,增加一个默认名称
    • 因为单词拼错导致修改了一个方法名: setFilterOnConnetToPeripherals 改成 setFilterOnConnectToPeripherals
    • 在BabyBluetooth.h 文件头几行添加了当前版本号
    • 在BabyBluetooth的.h文件中为每个类的一句话的作用描述
    • 逐步补充测试用例
    • baby添加缓存所有搜索到的外设索引,解决在使用过程中由于未保存peripheral对象可以导致的未知错
    • 添加2个方法,用户管理外设的自动重连功能

      /** 添加断开自动重连的外设 */- (void)AutoReconnect:(CBPeripheral *)peripheral;/** 删除断开自动重连的外设 */- (void)AutoReconnectCancel:(CBPeripheral *)peripheral;

    • 搜索和连接的过滤器方法中添加了rssi和advertisementData两个参数

      //v0.5.0/**设置查找Peripherals的规则| filter of discover peripherals */- (void)setFilterOnDiscoverPeripherals:(BOOL ()(NSString *peripheralName))filter;/**设置连接Peripherals的规则| setting filter of connect to peripherals peripherals */- (void)setFilterOnConnectToPeripherals:(BOOL ()(NSString *peripheralName))filter;/**设置查找Peripherals的规则| filter of discover peripherals */- (void)setFilterOnDiscoverPeripheralsAtChannel:(NSString *)channel filter:(BOOL ()(NSString *peripheralName))filter;/**设置连接Peripherals的规则| setting filter of connect to peripherals peripherals */- (void)setFilterOnConnectToPeripheralsAtChannel:(NSString *)channel filter:(BOOL ()(NSString *peripheralName))filter;//0.6.0/**设置查找Peripherals的规则| filter of discover peripherals */- (void)setFilterOnDiscoverPeripherals:(BOOL ()(NSString *peripheralName, NSDictionary *advertisementData, NSNumber *RSSI))filter;/**设置连接Peripherals的规则| setting filter of connect to peripherals peripherals */- (void)setFilterOnConnectToPeripherals:(BOOL ()(NSString *peripheralName, NSDictionary *advertisementData, NSNumber *RSSI))filter;/**设置查找Peripherals的规则| filter of discover peripherals */- (void)setFilterOnDiscoverPeripheralsAtChannel:(NSString *)channel filter:(BOOL ()(NSString *peripheralName, NSDictionary *advertisementData, NSNumber *RSSI))filter;/**设置连接Peripherals的规则| setting filter of connect to peripherals peripherals */- (void)setFilterOnConnectToPeripheralsAtChannel:(NSString *)channel filter:(BOOL ()(NSString *peripheralName, NSDictionary *advertisementData, NSNumber *RSSI))filter;