*)options;
79 |
80 | /**
81 | * 方法说明:断开连接
82 | * @param peripheral 需要断开连接的外设
83 | */
84 | -(void)closePeripheral:(nonnull CBPeripheral *)peripheral;
85 |
86 | /**
87 | * 方法说明: 往蓝牙模块中写入数据 // Method description: write data to Bluetooth module
88 | * @param data 往蓝牙模块中写入的数据 // Data written to the Bluetooth module
89 | * @param progress 写入数据的进度 // Progress of writing data
90 | * @param callBack 读取蓝牙模块返回数据 // Read Bluetooth module data
91 | */
92 | -(void)write:(NSData *_Nullable)data progress:(void(^_Nullable)(NSUInteger total,NSUInteger progress))progress receCallBack:(void (^_Nullable)(NSData *_Nullable))callBack;
93 |
94 | /**
95 | * 方法说明: 往蓝牙模块中写入数据 // Method description: write data to Bluetooth module
96 | * @param characteristic 特征值
97 | * @param data 往蓝牙模块中写入的数据 // Data written to the Bluetooth module
98 | * @param type 写入方式CBCharacteristicWriteWithResponse写入方式是带流控写入方式。CBCharacteristicWriteWithoutResponse不带流控写入方式 @see CBCharacteristicWriteType
99 | * Writing method CBCharacteristicWriteWithResponse The writing method is a writing method with flow control. CBCharacteristicWriteWithoutResponseWithout flow control write method @see CBCharacteristicWriteType
100 | */
101 | -(void)writeValue:(NSData *)data forCharacteristic:(nonnull CBCharacteristic *)characteristic type:(CBCharacteristicWriteType)type;
102 | @end
103 |
--------------------------------------------------------------------------------
/windows/thermal_printer_plugin.cpp:
--------------------------------------------------------------------------------
1 | #include "include/thermal_printer/thermal_printer_plugin.h"
2 |
3 | // This must be included before many other Windows headers.
4 | #include
5 |
6 | #include
7 | #include
8 | #include
9 |
10 | #include