ESP32およびWebOTAサポートを使用したMachinechat

RobertCNelson Applications Engineer

ソフトウェア

プロジェクトハードウェア

Arduinoの「Additional Boards Managers URLs」フィールドに次のリンクを使用して、ESP32のサポートを追加します。

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

Arduinoのライブラリマネージャからこれらのライブラリを追加します。

Full Source:

#include <WebOTA.h>
#include <ArduinoJson.h>
#include <HTTPClient.h>

#ifdef __cplusplus
extern "C" {
#endif
uint8_t temprature_sens_read();
#ifdef __cplusplus
}
#endif
uint8_t temprature_sens_read();

uint8_t ESP32_tempF;

// Create a unique ID for the data from each NodeMCU running this code
const char* jediID = "ESP32-Temp";

// Wi-Fi settings - replace with your Wi-Fi SSID and password
const char* mdns     = "ESP32-OTA"; // Used for MDNS resolution
//const char* ssid     = "DemoWiFi";
//const char* password = "DemoWiFi";

// IP address of server running Machinechat JEDI software




オリジナル・ソース(English)