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.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
/*!
* \~chinese
* @header PTCommandCommon.h
* @abstract 公共指令
*
* \~english
* @header PTCommandCommon.h
* @abstract Common Command
*/
# import <Foundation / Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface PTCommandCommon : NSObject
@property ( nonatomic , strong ) NSMutableData * _Nonnull cmdData ;
/// 获取打印机型号,回的数据格式: 51333142 5400
- ( void ) getPrinterModelName ;
/// 获取打印机固件版本号,版本号返回格式为 X.XX.XX或X.X.X【如1.01.01或1.0.3】
- ( void ) getPrinterFirmwareVersion ;
/// OTA蓝牙固件升级,该功能需要打印机支持
- ( void ) updateOTABleFirmwareWithData: ( NSData * ) data ;
//=========================固件升级旧的方式=================
/// 打印机固件升级(固定包大小)
/// @param data 固件数据
- ( void ) updatePrinterFirmwareWithData: ( NSData * ) data ;
//=========================固件升级新的方式=================
/// 获取升级固件每包的大小
- ( void ) getUpdatePrinterFirmwarePackage ;
/// 升级打印机固件
/// @param data 固件数据
/// @param package 每包大小
- ( void ) updateDeviceFirmwareWithData: ( NSData * ) data package: ( NSInteger ) package ;
@end
NS_ASSUME_NONNULL_END