Last active
December 23, 2017 18:45
-
-
Save erenkeskin/e9ded39eaaf7e80900876f5c8650f59b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// wifiBaglantisi, benim haberleşme portum | |
String Header; | |
Header = "HTTP/1.1 200 OK\r\n"; | |
Header += "Content-Type: text/html; charset=utf-8\r\n"; | |
Header += "Connection: close\r\n"; | |
String HTML; | |
HTML = "<html lang=\"tr-TR\"><head>"; | |
HTML += "<meta charset=\"UTF-8\"/>"; | |
HTML += "<title>RGB LED Kontrolu</title>"; | |
HTML += "</head><body>"; | |
HTML += "<h1>RGB Kontrolü için sayıları giriniz.</h1>"; | |
HTML += "<form action=\"/\" method=\"GET\" class=\"rgbkontrol\">"; | |
HTML += "<label for=\"kirmizi\">Kırmızı: </label><input type=\"text\" name=\"kirmizi\"><br />"; | |
HTML += "<label for=\"yesil\">Yeşil: </label><input type=\"text\" name=\"yesil\"><br />"; | |
HTML += "<label for=\"mavi\">Mavi: </label><input type=\"text\" name=\"mavi\"><br />"; | |
HTML += "<input type=\"submit\" value=\"Yak\">"; | |
HTML += "</form>"; | |
HTML += "</body></html>"; | |
Header += "Content-Length: "; | |
Header += (int)(HTML.length()); | |
Header += "\r\n\r\n"; | |
wifiBaglantisi.print("AT+CIPSEND="); // kullanıcaya aktarılacak karakter sayısı | |
wifiBaglantisi.print(ziyaretciID); | |
wifiBaglantisi.print(","); | |
wifiBaglantisi.println(Header.length() + HTML.length()); | |
delay(10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment