// // JL_RunSDK.h // JL_OTA_InnerBle // // Created by 凌煊峰 on 2021/10/9. // #import #import #import //#import NS_ASSUME_NONNULL_BEGIN @class Bluetooth; @protocol JL_RunSDKOtaDelegate @required /** * ota升级过程状态回调 */ - (void)otaProgressWithOtaResult:(JL_OTAResult)result withProgress:(float)progress; @end @interface JL_RunSDK : NSObject @property (strong, nonatomic) JL_BLEMultiple *mBleMultiple; @property (weak, nonatomic) JL_EntityM *__nullable mBleEntityM; @property(strong, nonatomic) Bluetooth *bt_ble; @property (weak, nonatomic) id delegate; /** * 单例 */ + (instancetype)sharedInstance; + (NSString *)textEntityStatus:(JL_EntityM_Status)status; - (JL_EntityM *)getEntity:(NSString *)uuid; #pragma mark - 杰理蓝牙库OTA流程相关业务 typedef void(^GET_DEVICE_CALLBACK)(BOOL needForcedUpgrade); /** * 获取已连接的蓝牙设备信息 */ - (void)getDeviceInfo:(GET_DEVICE_CALLBACK _Nonnull)callback; /** * OTA升级 */ - (void)otaFuncWithFilePath:(NSString *)otaFilePath; -(void)transportFile:(NSString*)path fileName:(NSString *)fileName Result:(void(^_Nullable)(JL_BigFileResult result, float progress))callback; - (void)stopTransport; -(void)loadRootFiles; @end NS_ASSUME_NONNULL_END