diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 0f0d740..080e70d 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,7 +1,10 @@ -{ - // See http://go.microsoft.com/fwlink/?LinkId=827846 - // for the documentation about the extensions.json format - "recommendations": [ - "platformio.platformio-ide" - ] -} +{ + // See http://go.microsoft.com/fwlink/?LinkId=827846 + // for the documentation about the extensions.json format + "recommendations": [ + "platformio.platformio-ide" + ], + "unwantedRecommendations": [ + "ms-vscode.cpptools-extension-pack" + ] +} diff --git a/platformio.ini b/platformio.ini index e4f2df1..8782fc7 100644 --- a/platformio.ini +++ b/platformio.ini @@ -8,9 +8,10 @@ ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html -[env:nodemcuv2] -platform = espressif8266 -board = nodemcuv2 + +[env:esp32dev] +platform = espressif32 +board = esp32dev framework = arduino upload_protocol = esptool lib_deps = diff --git a/src/main.cpp b/src/main.cpp index 419080e..29f94e6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,13 +1,15 @@ #include -#include -#include + +#include +#include + #include -#define WLAN_SSID "TP-LINK-RPT0" -#define WLAN_PASS "6JM54UG4EY" +#define WLAN_SSID "TP-LINK-HOME" +#define WLAN_PASS "6JM54UG4EX" #define MQTT_CLID "ValveControl" -#define MQTT_HOST "192.168.1.133" +#define MQTT_HOST "192.168.1.146" #define MQTT_PORT 1883 #define MQTT_USER "admin" #define MQTT_PASS "22pa0799" @@ -33,7 +35,7 @@ int MotorPin1 = 0; int MotorPin2 = 2; int duration = 10000; -ESP8266WebServer server(80); +WebServer server(80); WiFiClient espClient; PubSubClient client(espClient);