├── .idea ├── bluetoothprinter.iml ├── modules.xml └── workspace.xml ├── README.md ├── app.js ├── app.json ├── app.wxss ├── img ├── screen1.PNG └── screen2.PNG ├── miniprogram_npm └── text-encoding │ ├── index.js │ └── index.js.map ├── package-lock.json ├── pages ├── index │ ├── index.js │ ├── index.json │ ├── index.wxml │ └── index.wxss └── logs │ ├── logs.js │ ├── logs.json │ ├── logs.wxml │ └── logs.wxss ├── printer ├── commands.js ├── printerjobs.js └── printerutil.js ├── project.config.json └── utils └── util.js /.idea/bluetoothprinter.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/workspace.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 61 | 62 | 63 | 64 | function 65 | => 66 | 0A 67 | 1B 68 | buffer 69 | PrinterJob 70 | COLOR 71 | 21 72 | FEED_CONTROL_SEQUENCES 73 | CS_DEFAULT 74 | TXT_FONT_ 75 | 25 76 | ff 77 | 24 78 | the code point 79 | utf 80 | gbk 81 | '\x 82 | ' 83 | \x 84 | ab2hex 85 | CHARACTER_SPACING 86 | getBLEDeviceServices 87 | onBLEConnectionStateChange 88 | openBluetoothAdapter 89 | onBluetoothAdapterStateChange 90 | _discoveryStarted 91 | startBluetoothDevicesDiscovery 92 | connected 93 | name 94 | 95 | 96 | [0x 97 | ] 98 | ,0x 99 | 100 | 101 | 102 | 104 | 105 | 123 | 124 | 125 | 126 | 127 | true 128 | DEFINITION_ORDER 129 | 130 | 131 | 132 | 133 | 134 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | General 148 | 149 | 150 | JavaScript 151 | 152 | 153 | Naming conventionsJavaScript 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 |