mirror of
https://gitlab.com/fabinfra/fabhardware/fabreader.git
synced 2025-03-12 14:41:44 +01:00
Added Website
This commit is contained in:
parent
e40c440484
commit
d7c1288946
@ -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: </label><input maxlength=\"30\" name=\"ssid\"><br>"
|
||||
"<label>Passwort: </label><input maxlength=\"30\" name=\"Passwort\"><br>"
|
||||
"<label>BrokerIP: </label><input maxlength=\"15\" name=\"BrokerIP\"><br>"
|
||||
"<label>ReaderID: </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
|
@ -16,6 +16,8 @@
|
||||
#include <PubSubClient.h>
|
||||
#include <SPI.h>
|
||||
|
||||
#include "website.h"
|
||||
|
||||
WiFiClient espClient;
|
||||
//Config_Data config;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user