Added Website

This commit is contained in:
TheJoKlLa 2022-12-14 17:03:13 +01:00
parent e40c440484
commit d7c1288946
2 changed files with 2 additions and 60 deletions

View File

@ -1,60 +0,0 @@
#ifndef WEBSITE_H
#define WEBSITE_H
const struct Website
{
const char INDEX[] =
"<!DOCTYPE HTML>"
"<html>"
"<head>"
"<meta content=\"text/html; charset=ISO-8859-1\""
" http-equiv=\"content-type\">"
"<meta name = \"viewport\" content = \"width = device-width, initial-scale = 1.0, maximum-scale = 1.0, user-scalable=0\">"
"<title>Verbindungsdaten RFID-Reader</title>"
"<style>"
"\"body { background-color: #808080; font-family: Arial, Helvetica, Sans-Serif; Color: #000000; }\""
"</style>"
"</head>"
"<body>"
"<h1>Verbindungsdaten RFID-Reader</h1>"
"<FORM action=\"/\" method=\"post\">"
"<P>"
"<label>ssid:&nbsp;</label><input maxlength=\"30\" name=\"ssid\"><br>"
"<label>Passwort:&nbsp;</label><input maxlength=\"30\" name=\"Passwort\"><br>"
"<label>BrokerIP:&nbsp;</label><input maxlength=\"15\" name=\"BrokerIP\"><br>"
"<label>ReaderID:&nbsp;</label><input maxlength=\"3\" name=\"ReaderID\"><br>"
"Connection<BR>"
"<INPUT type=\"radio\" name=\"ConType\" value=\"1\">Ehternet<BR>"
"<INPUT type=\"radio\" name=\"ConType\" value=\"0\">WiFi<BR>"
"RFID-Type<BR>"
"<INPUT type=\"radio\" name=\"RFIDType\" value=\"0\">Mifare Classic<BR>"
"<INPUT type=\"radio\" name=\"RFIDType\" value=\"1\">Mifare Classic + Timestamp<BR>"
"<INPUT type=\"radio\" name=\"RFIDType\" value=\"2\">Mifare DESFire<BR>"
"<INPUT type=\"radio\" name=\"RFIDType\" value=\"3\">Mifar Ultralight C<BR>"
"Data Package Format<BR>"
"<INPUT type=\"radio\" name=\"DatFormat\" value=\"0\">JSON<BR>"
"<INPUT type=\"radio\" name=\"DatFormat\" value=\"1\">Text <BR>"
"<INPUT type=\"submit\" value=\"Send\"> <INPUT type=\"reset\">"
"</P>"
"</FORM>"
"</body>"
"</html>";
const char SAVED[] =
"<!DOCTYPE HTML>"
"<html>"
"<head>"
"<meta content=\"text/html; charset=ISO-8859-1\""
" http-equiv=\"content-type\">"
"<meta name = \"viewport\" content = \"width = device-width, initial-scale = 1.0, maximum-scale = 1.0, user-scalable=0\">"
"<title>Verbindungsdaten RFID-Reader</title>"
"<style>"
"\"body { background-color: #808080; font-family: Arial, Helvetica, Sans-Serif; Color: #000000; }\""
"</style>"
"</head>"
"<body>"
"<h1>Saved</h1>"
"<h2><a href=\"/\">go back</a></h2>"
"</body>"
"</html>";
};
#endif

View File

@ -16,6 +16,8 @@
#include <PubSubClient.h>
#include <SPI.h>
#include "website.h"
WiFiClient espClient;
//Config_Data config;