Update: WebSocket支持MicroPython板卡烧录固件及上传程序

This commit is contained in:
王立帮
2024-12-02 21:50:56 +08:00
parent 4008e1aab5
commit a5c1ef4269
14 changed files with 379 additions and 521 deletions

View File

@@ -5,6 +5,7 @@ goog.require('Mixly.StatusBarsManager');
goog.require('Mixly.WebSocket');
goog.require('Mixly.WebSocket.Serial');
goog.require('Mixly.WebSocket.ArduShell');
goog.require('Mixly.WebSocket.BU');
goog.provide('Mixly.WebSocket.Socket');
const {
@@ -16,7 +17,8 @@ const {
const {
Socket,
Serial,
ArduShell
ArduShell,
BU
} = WebSocket;
@@ -32,6 +34,7 @@ Socket.init = function () {
const socket = mixlySocket.getSocket();
socket.on('connect', () => {
Serial.getPorts()
.then((ports) => {
let portsName = [];
@@ -72,6 +75,7 @@ Socket.init = function () {
Serial.init(mixlySocket);
ArduShell.init(mixlySocket);
BU.init(mixlySocket);
}
});