AI 原生的
Web Arduino IDE

从创意到硬件只需几秒钟。无需驱动,无需设置——只有你、AI 和你的创造力。

0% 本地安装
WebSerial 直连
支持 ESP32 和 STM32
TC-IMP-03通过 File System Access API 统一管理云端与本地项目文件
Gokino
Gokino.
G
ESP32_MQTT.ino
config.h
sensor.cpp
sketches>ESP32_MQTT.ino
1#include <WiFi.h>
2#include <PubSubClient.h>
3#include "config.h"
4
5WiFiClient espClient;
6PubSubClient mqttClient(espClient);
7unsigned long lastMsg = 0;
8
9void setup() {
10 Serial.begin(115200);
11 setupWiFi();
12 mqttClient.setServer(MQTT_BROKER, 1883);
13}
14
15void loop() {
16 if (!mqttClient.connected()) reconnectMQTT();
17 mqttClient.loop();
18
19 // AI Non-blocking millis() timer
20 unsigned long now = millis();
21 if (now - lastMsg > 2000) {
22 lastMsg = now;
23 publishTelemetry();
24 }
25}
Serial Monitor (115200)
LIVE UART
[00:01.120] ESP-ROM:esp32s3-20210327-s3 ready
[00:01.340] WiFi Connected! IP: 192.168.1.142
[00:01.580] MQTT Broker connected: broker.gokino.dev
[00:02.100] UART 115200 bps • Buffer 1024B OK
>
HARDWARE // ECOSYSTEM

即时兼容 全球最流行的物联网微控制器系列。

悬停在各开发板上以查看实时硬件规格、MCU 架构和支持的芯片型号