JMBle.h
IntroductionUse the links in the table of contents to the left to access the documentation. Classes
MethodsconnectWithPeripheral:formRecovery:complete:- (void)connectWithPeripheral:(nonnull CBPeripheral *)peripheral formRecovery:(BOOL)formRecovery complete:(nullable JMComplete)completed; ParametersDiscussion连接外设 scanWithDiscover:- (void)scanWithDiscover:(nullable JMDiscoverBle)discover; ParametersDiscussion扫描打印机 shareBle+ (nonnull JMBle *)shareBle; Return ValueJMBle 单例对象 Discussion单例 Properties
peripheral外设 -connectWithPeripheral:defendLose:complete: 中设置值,在下一次设置值前,其值不变 @property (nonatomic, strong, readonly, nullable) CBPeripheral *peripheral; state蓝牙状态 @property (nonatomic, assign, readonly) CBCentralManagerState state; Macro DefinitionsSINGLETONBLE#define SINGLETONBLE [JMBle shareBle] Discussion蓝牙单例对象 |