├── CSS.h ├── ESP32WebServer-master.zip ├── ESP32_TF_Control.ino ├── LICENSE.txt └── README.md /CSS.h: -------------------------------------------------------------------------------- 1 | /** 2 | *\*\file CSS.h 3 | *\*\author Sakurashiling 4 | *\*\HardWareSite https://oshwhub.com/lin_xiandi/autoctrl-wireless-tf 5 | *\*\License Apache 2.0 署名原作者 6 | *\*\version v1.5 7 | **/ 8 | String webpage = ""; // String to save the html code 9 | // flase=未连接 ture=已连接 10 | void append_page_header(bool status) 11 | { 12 | webpage = F(""); 13 | webpage = F(""); // 声明编码,防止乱码 14 | webpage += F(""); 15 | webpage += F("TF卡文件在线管理系统"); // NOTE: 1em = 16px 16 | webpage += F(""); 17 | webpage += F(""); 46 | if (status) 47 | { 48 | webpage += F("

TF卡状态:已连接

"); 49 | } 50 | else 51 | { 52 | webpage += F("

TF卡状态:未连接

"); 53 | } 54 | webpage += F(""); 60 | } 61 | void append_page_footer() 62 | { 63 | webpage += F("\n

❖Sakura_shiling❖Firmware Ver.1.5❖"); 64 | } 65 | -------------------------------------------------------------------------------- /ESP32WebServer-master.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Sakurashiling/ESP32_TF_Control/39ece1ae6454efa684a890d540bb0f414eff48f3/ESP32WebServer-master.zip -------------------------------------------------------------------------------- /ESP32_TF_Control.ino: -------------------------------------------------------------------------------- 1 | /** 2 | *\*\file ESP32_TF_Control.ino 3 | *\*\author Sakurashiling 4 | *\*\HardWareSite https://oshwhub.com/lin_xiandi/autoctrl-wireless-tf 5 | *\*\License Apache 2.0 署名原作者 6 | *\*\version v1.5 7 | **/ 8 | #include 9 | #include 10 | #include 11 | 12 | #include "CSS.h" // web、样式文件 13 | #include 14 | #include 15 | 16 | // WIFI的SSID和PASSWORD,可以在下边代码中改创建热点或连接WIFI 17 | char ssid[] = "Myprinter"; 18 | char pass[] = "12345678"; 19 | 20 | // TF卡网页服务 21 | ESP32WebServer server(80); 22 | #define servername "tfserver" // 定义服务器的名字 23 | #define SD_pin 16 // 片选引脚 24 | bool SD_present = false; // 控制TF卡是否存在 25 | 26 | /********* 初始化代码段 **********/ 27 | void setup(void) 28 | { 29 | pinMode(32, OUTPUT); 30 | pinMode(33, OUTPUT); 31 | digitalWrite(32, LOW); // 模拟开关切换到ESP32X 32 | digitalWrite(33, LOW); // TF卡电源开 33 | Serial.begin(115200); // 串口115200bps 34 | 35 | /*----------创建热点或连接WIFI二选一------------------*/ 36 | WiFi.softAP(ssid, pass); // 生成WIFI热点 37 | ///////////////////////////////////////////////////// 38 | // WiFi.begin(ssid, pass); // 连接WIFI 39 | // Serial.print("Connecting"); 40 | // while (WiFi.status() != WL_CONNECTED) 41 | // { 42 | // delay(500); 43 | // Serial.print("."); 44 | // } 45 | // Serial.println(""); 46 | // Serial.print("Connected,IP adrress:"); 47 | // Serial.println(WiFi.localIP()); 48 | /*--------------------------------------------------*/ 49 | 50 | // 设置服务器名称,如果上边定义服务器的名字为tfserver,则可以使用 http://tfserver.local/ 进入。 51 | if (!MDNS.begin(servername)) 52 | { 53 | Serial.println(F("Error setting up MDNS responder!")); 54 | ESP.restart(); 55 | } 56 | 57 | /********* 服务器命令 **********/ 58 | server.on("/", SD_dir); 59 | server.on("/upload", File_Upload); 60 | server.on("/on", TF_Connect); 61 | server.on("/off", TF_Disconnect); 62 | server.on( 63 | "/fupload", HTTP_POST, []() 64 | { server.send(200); }, 65 | handleFileUpload); 66 | 67 | server.begin(); 68 | 69 | Serial.println("HTTP server started"); 70 | } 71 | 72 | /********* 循环代码段 **********/ 73 | 74 | void loop(void) 75 | { 76 | server.handleClient(); // 监听客户端连接 77 | } 78 | 79 | /********* 功能 **********/ 80 | // 服务器web的初始页面,列出目录并给你删除和上传的机会 81 | void SD_dir() 82 | { 83 | if (SD_present) 84 | { 85 | // 本段代码由前辈MC2022首次编写,包含下载或删除的操作 86 | if (server.args() > 0) // 接收到参数,如果没有参数则忽略 87 | { 88 | Serial.println(server.arg(0)); 89 | 90 | String Order = server.arg(0); 91 | Serial.println(Order); 92 | 93 | if (Order.indexOf("download_") >= 0) 94 | { 95 | Order.remove(0, 9); 96 | SD_file_download(Order); 97 | Serial.println(Order); 98 | } 99 | 100 | if ((server.arg(0)).indexOf("delete_") >= 0) 101 | { 102 | Order.remove(0, 7); 103 | SD_file_delete(Order); 104 | Serial.println(Order); 105 | } 106 | } 107 | 108 | File root = SD.open("/"); 109 | if (root) 110 | { 111 | root.rewindDirectory(); 112 | SendHTML_Header(); 113 | webpage += F(""); 114 | webpage += F(""); 115 | printDirectory("/", 0); 116 | webpage += F("
文件名/类型文件类型/目录名文件大小
"); 117 | SendHTML_Content(); 118 | root.close(); 119 | } 120 | else 121 | { 122 | SendHTML_Header(); 123 | webpage += F("

找不到文件

"); 124 | } 125 | append_page_footer(); 126 | SendHTML_Content(); 127 | SendHTML_Stop(); // 需要停止,因为没有发送内容长度 128 | } 129 | else 130 | ReportSDNotPresent(); 131 | } 132 | 133 | // 将文件上传到 TF卡 134 | void File_Upload() 135 | { 136 | append_page_header(SD_present); 137 | webpage += F("

选择要上传的文件

"); 138 | webpage += F("
"); 139 | webpage += F(""); // 上传页面按钮区域 140 | webpage += F("

"); // 上传页面按钮宽度 141 | webpage += F("

点击上传按钮后请耐心等待,不要离开界面!

"); 142 | webpage += F("[返回]

"); 143 | append_page_footer(); 144 | server.send(200, "text/html", webpage); 145 | } 146 | 147 | // 将TF卡连接到ESP32 148 | void TF_Connect() 149 | { 150 | digitalWrite(33, HIGH); // TF卡电源关 151 | delay(10); 152 | digitalWrite(32, HIGH); // 模拟开关切换到ESP32 153 | digitalWrite(33, LOW); // TF卡电源开 154 | delay(10); 155 | Serial.print(F("Initializing TF card...")); 156 | if (!SD.begin(SD_pin)) 157 | { 158 | Serial.println(F("Card failed or not present, no TF Card data logging possible...")); 159 | SD_present = false; 160 | } 161 | else 162 | { 163 | Serial.println(F("Card initialised... file access enabled...")); 164 | SD_present = true; 165 | } 166 | append_page_header(SD_present); 167 | if (SD_present) 168 | { 169 | webpage += F("

TF卡已经连接,请等待3S再尝试读取文件列表

"); 170 | } 171 | else 172 | { 173 | webpage += F("

TF卡未连接成功,请重试!

"); 174 | webpage += F("

Tips:烧录接口不会给TF卡供电!

"); 175 | } 176 | webpage += F("[返回]

"); 177 | append_page_footer(); 178 | server.send(200, "text/html", webpage); 179 | } 180 | // 将TF卡连接到外部设备(3D打印机) 181 | void TF_Disconnect() 182 | { 183 | digitalWrite(33, HIGH); // TF卡电源关 184 | delay(10); 185 | digitalWrite(32, LOW); // 模拟开关切换到外部设备 186 | digitalWrite(33, LOW); // TF卡电源开 187 | delay(10); 188 | Serial.println(F("Card failed or not present, no TF Card data logging possible...")); 189 | SD_present = false; 190 | 191 | append_page_header(SD_present); 192 | webpage += F("

TF卡已经断开

"); 193 | webpage += F("[返回]

"); 194 | append_page_footer(); 195 | server.send(200, "text/html", webpage); 196 | } 197 | 198 | // 打印目录,它在 void SD_dir() 中调用 199 | void printDirectory(const char *dirname, uint8_t levels) 200 | { 201 | 202 | File root = SD.open(dirname); 203 | 204 | if (!root) 205 | { 206 | return; 207 | } 208 | if (!root.isDirectory()) 209 | { 210 | return; 211 | } 212 | File file = root.openNextFile(); 213 | 214 | int i = 0; 215 | while (file) 216 | { 217 | if (webpage.length() > 1000) 218 | { 219 | SendHTML_Content(); 220 | } 221 | if (file.isDirectory()) 222 | { 223 | webpage += "" + String(file.isDirectory() ? "目录" : "File") + "" + String(file.name()) + ""; 224 | printDirectory(file.name(), levels - 1); 225 | } 226 | else 227 | { 228 | webpage += "" + String(file.name()) + ""; 229 | webpage += "" + String(file.isDirectory() ? "Dir" : "File") + ""; 230 | int bytes = file.size(); 231 | String fsize = ""; 232 | if (bytes < 1024) 233 | fsize = String(bytes) + " B"; 234 | else if (bytes < (1024 * 1024)) 235 | fsize = String(bytes / 1024.0, 3) + " KB"; 236 | else if (bytes < (1024 * 1024 * 1024)) 237 | fsize = String(bytes / 1024.0 / 1024.0, 3) + " MB"; 238 | else 239 | fsize = String(bytes / 1024.0 / 1024.0 / 1024.0, 3) + " GB"; 240 | webpage += "" + fsize + ""; 241 | webpage += ""; 242 | webpage += F(""); 243 | webpage += F(""); 247 | webpage += ""; 248 | webpage += ""; 249 | webpage += F(""); 250 | webpage += F(""); 254 | webpage += ""; 255 | webpage += ""; 256 | } 257 | file = root.openNextFile(); 258 | i++; 259 | } 260 | file.close(); 261 | } 262 | 263 | // 上传一个文件到TF卡中,被void SD_dir()这个函数调用 264 | void SD_file_download(String filename) 265 | { 266 | if (SD_present) 267 | { 268 | File download = SD.open("/" + filename); 269 | if (download) 270 | { 271 | server.sendHeader("Content-Type", "text/text"); 272 | server.sendHeader("Content-Disposition", "attachment; filename=" + filename); 273 | server.sendHeader("Connection", "close"); 274 | server.streamFile(download, "application/octet-stream"); 275 | download.close(); 276 | } 277 | else 278 | ReportFileNotPresent("download"); 279 | } 280 | else 281 | ReportSDNotPresent(); 282 | } 283 | 284 | // 处理文件上传文件到TF卡 285 | File UploadFile; 286 | // 将新文件上传到文件系统 287 | void handleFileUpload() 288 | { 289 | HTTPUpload &uploadfile = server.upload(); 290 | // 参见 https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266WebServer/srcv 291 | // 有关“状态”结构的更多信息,还有其他原因,例如可以使用的传输失败 292 | if (uploadfile.status == UPLOAD_FILE_START) 293 | { 294 | String filename = uploadfile.filename; 295 | if (!filename.startsWith("/")) 296 | filename = "/" + filename; 297 | Serial.print("Upload File Name: "); 298 | Serial.println(filename); 299 | SD.remove(filename); // 删除以前的版本,否则数据会再次附加到文件中 300 | UploadFile = SD.open(filename, FILE_WRITE); // 在TF卡中打开用于写入的文件(如果不存在则创建它) 301 | filename = String(); 302 | } 303 | else if (uploadfile.status == UPLOAD_FILE_WRITE) // 准备写入文件 304 | { 305 | if (UploadFile) 306 | UploadFile.write(uploadfile.buf, uploadfile.currentSize); // 将接收到的字节写入文件 307 | } 308 | else if (uploadfile.status == UPLOAD_FILE_END) // 上传文件结束 309 | { 310 | if (UploadFile) // 如果文件创建成功 311 | { 312 | UploadFile.close(); // 再次关闭文件 313 | Serial.print("Upload Size: "); 314 | Serial.println(uploadfile.totalSize); 315 | webpage = ""; 316 | append_page_header(SD_present); 317 | webpage += F("

文件上传成功

"); 318 | webpage += F("

上传的文件: "); 319 | webpage += uploadfile.filename + "

"; 320 | webpage += F("

文件大小: "); 321 | webpage += file_size(uploadfile.totalSize) + "



"; 322 | webpage += F("[返回]

"); 323 | append_page_footer(); 324 | server.send(200, "text/html", webpage); 325 | } 326 | else 327 | { 328 | ReportCouldNotCreateFile("upload"); 329 | } 330 | } 331 | } 332 | 333 | // 从TF卡中删除一个文件,被void SD_dir()这个函数调用 334 | void SD_file_delete(String filename) 335 | { 336 | if (SD_present) 337 | { 338 | SendHTML_Header(); 339 | File dataFile = SD.open("/" + filename, FILE_READ); // 现在从TF卡读取数据 340 | if (dataFile) 341 | { 342 | if (SD.remove("/" + filename)) 343 | { 344 | Serial.println(F("File deleted successfully")); 345 | webpage += "

文件 '" + filename + "' 已被删除

"; 346 | webpage += F("[返回]

"); 347 | } 348 | else 349 | { 350 | webpage += F("

错误!文件未被删除

"); 351 | webpage += F("[返回]

"); 352 | } 353 | } 354 | else 355 | ReportFileNotPresent("delete"); 356 | append_page_footer(); 357 | SendHTML_Content(); 358 | SendHTML_Stop(); 359 | } 360 | else 361 | ReportSDNotPresent(); 362 | } 363 | 364 | // 发送 HTML 标题 365 | void SendHTML_Header() 366 | { 367 | server.sendHeader("Cache-Control", "no-cache, no-store, must-revalidate"); 368 | server.sendHeader("Pragma", "no-cache"); 369 | server.sendHeader("Expires", "-1"); 370 | server.setContentLength(CONTENT_LENGTH_UNKNOWN); 371 | server.send(200, "text/html", ""); // 空内容会抑制 Content-length 标头,因此我们必须自己关闭套接字。 372 | append_page_header(SD_present); 373 | server.sendContent(webpage); 374 | webpage = ""; 375 | } 376 | 377 | // 发送 HTML 内容 378 | void SendHTML_Content() 379 | { 380 | server.sendContent(webpage); 381 | webpage = ""; 382 | } 383 | 384 | // 发送 HTML 停止 385 | void SendHTML_Stop() 386 | { 387 | server.sendContent(""); 388 | server.client().stop(); // 因为没有发送内容长度所以停止 389 | } 390 | 391 | // 报告TF卡不存在 392 | void ReportSDNotPresent() 393 | { 394 | SendHTML_Header(); 395 | webpage += F("

TF卡不存在

"); 396 | webpage += F("[返回]

"); 397 | append_page_footer(); 398 | SendHTML_Content(); 399 | SendHTML_Stop(); 400 | } 401 | 402 | // 报告文件不存在 403 | void ReportFileNotPresent(String target) 404 | { 405 | SendHTML_Header(); 406 | webpage += F("

文件不存在

"); 407 | webpage += F("[返回]

"; 409 | append_page_footer(); 410 | SendHTML_Content(); 411 | SendHTML_Stop(); 412 | } 413 | 414 | // 报告无法创建文件 415 | void ReportCouldNotCreateFile(String target) 416 | { 417 | SendHTML_Header(); 418 | webpage += F("

写入失败 (上传文件为空或未连接或TF卡可能写保护)

"); 419 | webpage += F("[返回]

"; 421 | append_page_footer(); 422 | SendHTML_Content(); 423 | SendHTML_Stop(); 424 | } 425 | 426 | // 文件大小转换 427 | String file_size(int bytes) 428 | { 429 | String fsize = ""; 430 | if (bytes < 1024) 431 | fsize = String(bytes) + " B"; 432 | else if (bytes < (1024 * 1024)) 433 | fsize = String(bytes / 1024.0, 3) + " KB"; 434 | else if (bytes < (1024 * 1024 * 1024)) 435 | fsize = String(bytes / 1024.0 / 1024.0, 3) + " MB"; 436 | else 437 | fsize = String(bytes / 1024.0 / 1024.0 / 1024.0, 3) + " GB"; 438 | return fsize; 439 | } 440 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ESP32_TF_Control 2 | ## ⭐无线管理TF卡模块⭐ 3 | 4 | 固件开源地址(来点个Star吧~):https://github.com/Sakurashiling/ESP32_TF_Control 5 | 硬件开源地址(点点赞也行):https://oshwhub.com/lin_xiandi/autoctrl-wireless-tf --------------------------------------------------------------------------------