This commit is contained in:
Make It Smart
2024-01-27 01:40:39 +03:00
parent a05d34a711
commit 64ef035c19
2 changed files with 3 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 KiB

View File

@@ -51,7 +51,7 @@ void connectToWifi() {
IPAddress dns(192, 168, 1, 1); IPAddress dns(192, 168, 1, 1);
IPAddress dns2(8, 8, 8, 8); IPAddress dns2(8, 8, 8, 8);
const char* deviceName = "MakeItSmart_Smart_Thermometer"; const char* deviceName = "MakeItSmart_Smart_Switch";
const char *ssid = "**********Your_SSID************"; const char *ssid = "**********Your_SSID************";
const char *password = "********Your Password**********"; const char *password = "********Your Password**********";
@@ -86,12 +86,12 @@ void connectToWifi() {
//---------------------------------Http Functions--------------------------------------------------------------- //---------------------------------Http Functions---------------------------------------------------------------
void get_state() { void get_state() {
httpServer.send(200, "text/plain", /*"hum : " +*/ String(state)); httpServer.send(200, "text/plain", String(state));
} }
void toggle() { void toggle() {
state = !state; state = !state;
httpServer.send(200, "text/plain", /*"temp : " +*/ String(state)); httpServer.send(200, "text/plain", String(state));
} }
void get_device_type() { void get_device_type() {