ESP32C6 无法与 Arduino IDE 连接到 Rainmaker 应用程序
作者: flippe0456创建于 2026年5月8日更新于 2026年9月30日
标签Status: Awaiting triage
// This example demonstrates the ESP RainMaker with a standard Switch device. #include <Arduino.h> #include "RMaker.h" #include "WiFi.h" #include "WiFiProv.h" #include "AppInsights.h"
// Default power mode const char *service_name = "PROV_1234"; const char *pop = "abcd1234";
// GPIO for push button #if CONFIG_IDF_TARGET_ESP32C3 || CONFIG_IDF_TARGET_ESP32C6 static int gpio_0 = 9; static int gpio_switch = 7; #else // GPIO for virtual device static int gpio_0 = 0; static int gpio_switch = 16; #endif
内容来源: espressif/arduino-esp32