Arduino IDE离线安装ESP8266板管理工具

文章目录

概要

Arduino IDE离线安装ESP8266板管理工具,在线安装因为网络或者https的问题不能安装

官网地址

Adruino:https://www.arduino.cc/

ESP8266项目:<a href-'https://github.com/esp8266/' target='_blank'>https://github.com/esp8266/

开发板管理地址

在配置了地址之后,会将该JSON文件下载到本地目录

安装ESP8266开发板支持

离线安装

按照上面的安装时候的报错,可以看到Arduino IDE去下载了什么文件,然后手动将文件下载保存到本地的任意目录,启动一个HTTP服务,下面是用NODE启动一个简单的HTTP服务

使用npm install http-server -g全局安装http-server

shell 复制代码
/e/workspace/http-server
$ http-server ./public -p 3000 --cors
Starting up http-server, serving ./public

http-server version: 14.1.1

http-server settings:
CORS: true
Cache: 3600 seconds
Connection Timeout: 120 seconds
Directory Listings: visible
AutoIndex: visible
Serve GZIP Files: false
Serve Brotli Files: false
Default File Extension: none

Available on:
  http://192.168.0.119:3000
  http://127.0.0.1:3000
Hit CTRL-C to stop the server

将下载的文件放到/e/workspace/http-server/public

启动上面的服务,在浏览器中访问

将上面的地址文件下载地址替换掉package_esp8266com_index.json中下载的文件地址

properties 复制代码
https://github.com/esp8266/Arduino/releases/download/3.1.2/esp8266-3.1.2.zip
https://github.com/earlephilhower/esp-quick-toolchain/releases/download/2.5.0-4/python3-3.7.2.post1-embed-win32v2a.zip
https://github.com/earlephilhower/esp-quick-toolchain/releases/download/3.1.0-gcc10.3/x86_64-w64-mingw32.xtensa-lx106-elf-e5f9fec.220621.zip
https://github.com/earlephilhower/esp-quick-toolchain/releases/download/3.1.0-gcc10.3/x86_64-w64-mingw32.mkspiffs-7fefeac.220621.zip
https://github.com/earlephilhower/esp-quick-toolchain/releases/download/3.1.0-gcc10.3/x86_64-w64-mingw32.mklittlefs-30b7fc1.220621.zip

替换为

properties 复制代码
http://localhost:3000/esp8266-3.1.2.zip
http://localhost:3000/python3-3.7.2.post1-embed-win32v2a.zip
http://localhost:3000/x86_64-w64-mingw32.xtensa-lx106-elf-e5f9fec.220621.zip
http://localhost:3000/x86_64-w64-mingw32.mkspiffs-7fefeac.220621.zip
http://localhost:3000/x86_64-w64-mingw32.mklittlefs-30b7fc1.220621.zip

然后重启Arduino IDE,继续安装,就能安装成功

额外记录NODE启动服务

可以使用项目方式启动

shell 复制代码
$ npm init
$ cd http-server
$ mkdir public
$ npm install http-server --save-dev
$ npm install express --save-dev
$ npm install serve-index --save-dev

编辑package.json文件

json 复制代码
{
  "name": "http-server",
  "version": "1.0.0",
  "main": "server.js",
  "scripts": {
    "serve": "node server.js"
  },
  "author": "",
  "license": "ISC",
  "description": "",
  "devDependencies": {
    "express": "^5.1.0",
    "http-server": "^14.1.1",
    "serve-index": "^1.9.1"
  }
}

创建server.js文件

javascript 复制代码
const express = require('express');
const path = require('path');
const serveIndex = require('serve-index');

const app = express();

app.use((req, res, next) => {
    res.header('Access-Control-Allow-Origin', '*');
    next();
});

app.use(express.static(path.join(__dirname, './public')));

app.use('/', serveIndex(path.join(__dirname, './public'), {
    icons: true,
    stylesheet: false
    // stylesheet: './style.css',
}));

app.listen(60802, () => {
    console.log('Server running on http://localhost:60802');
});

启动

shell 复制代码
$npm run serve

> http-server@1.0.0 serve
> node server.js

Server running on http://localhost:60802
相关推荐
拐锅2 个月前
ESP8266(NodeMcu)+GPS模块+TFT屏幕实现GPS码表
gps·esp8266·nodemcu·tft
程序员皮皮2 个月前
ESP8266_AP机械手 第三篇Uniapp遥控器
服务器·前端·uni-app·esp8266
zlbcdn2 个月前
【最新版】Arduino IDE的安装入门Demo
arduino ide·arduino uno
爱吃程序猿的喵3 个月前
基于VSCode+PlatformIO环境的ESP8266的HX1838红外模块
ide·vscode·编辑器·arduino·esp8266·红外线
SimonLiu0093 个月前
macOS Arduino IDE离线安装ESP8266支持包
macos·arduino·esp8266·离线·arduino ide
感谢地心引力3 个月前
【matlab】与开发板进行串口通信
开发语言·matlab·esp8266
lishaoan773 个月前
快速安装Arduino IED的STM32 MCU开发包
stm32·单片机·嵌入式硬件·arduino·arduino ide·stm32 arduino
优信电子3 个月前
ESP8266_ESP32 Smartconfig一键配网功能
esp32·esp8266·smartconfig·无线配网
charlie1145141914 个月前
从0开始的构建的天气预报小时钟(基于STM32F407ZGT6,ESP8266 + SSD1309)——第2章——构建简单的ESP8266驱动
stm32·单片机·物联网·学习·c·esp8266