Compare commits
No commits in common. "2659e366ec4ffab096abcc5a940a3871c413013f" and "a3dc7a5fba7509c55301dc4bc52494114c1dd082" have entirely different histories.
2659e366ec
...
a3dc7a5fba
39
.vscode/settings.json
vendored
39
.vscode/settings.json
vendored
@ -10,43 +10,6 @@
|
|||||||
"vector": "cpp",
|
"vector": "cpp",
|
||||||
"string_view": "cpp",
|
"string_view": "cpp",
|
||||||
"memory": "cpp",
|
"memory": "cpp",
|
||||||
"ranges": "cpp",
|
"ranges": "cpp"
|
||||||
"initializer_list": "cpp",
|
|
||||||
"utility": "cpp",
|
|
||||||
"atomic": "cpp",
|
|
||||||
"bit": "cpp",
|
|
||||||
"cctype": "cpp",
|
|
||||||
"clocale": "cpp",
|
|
||||||
"cmath": "cpp",
|
|
||||||
"compare": "cpp",
|
|
||||||
"concepts": "cpp",
|
|
||||||
"cstdarg": "cpp",
|
|
||||||
"cstddef": "cpp",
|
|
||||||
"cstdint": "cpp",
|
|
||||||
"cstdio": "cpp",
|
|
||||||
"cstdlib": "cpp",
|
|
||||||
"cstring": "cpp",
|
|
||||||
"cwchar": "cpp",
|
|
||||||
"cwctype": "cpp",
|
|
||||||
"map": "cpp",
|
|
||||||
"set": "cpp",
|
|
||||||
"exception": "cpp",
|
|
||||||
"algorithm": "cpp",
|
|
||||||
"functional": "cpp",
|
|
||||||
"iterator": "cpp",
|
|
||||||
"memory_resource": "cpp",
|
|
||||||
"numeric": "cpp",
|
|
||||||
"optional": "cpp",
|
|
||||||
"system_error": "cpp",
|
|
||||||
"tuple": "cpp",
|
|
||||||
"type_traits": "cpp",
|
|
||||||
"iosfwd": "cpp",
|
|
||||||
"limits": "cpp",
|
|
||||||
"new": "cpp",
|
|
||||||
"ostream": "cpp",
|
|
||||||
"stdexcept": "cpp",
|
|
||||||
"streambuf": "cpp",
|
|
||||||
"cinttypes": "cpp",
|
|
||||||
"typeinfo": "cpp"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,59 +0,0 @@
|
|||||||
// filename: favicon.png.gz.h
|
|
||||||
#define favicon_png_gz_len 554
|
|
||||||
const char favicon_png_gz[] = {
|
|
||||||
0x1F, 0x8B, 0x08, 0x00, 0xB2, 0x41, 0xD3, 0x60, 0x02, 0xFF,
|
|
||||||
0x01, 0x13, 0x02, 0xEC, 0xFD, 0x89, 0x50, 0x4E, 0x47, 0x0D,
|
|
||||||
0x0A, 0x1A, 0x0A, 0x00, 0x00, 0x00, 0x0D, 0x49, 0x48, 0x44,
|
|
||||||
0x52, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10, 0x08,
|
|
||||||
0x06, 0x00, 0x00, 0x00, 0x1F, 0xF3, 0xFF, 0x61, 0x00, 0x00,
|
|
||||||
0x01, 0xDA, 0x49, 0x44, 0x41, 0x54, 0x38, 0x4F, 0x85, 0x93,
|
|
||||||
0x4F, 0x68, 0x13, 0x41, 0x14, 0x87, 0xBF, 0xB7, 0xD9, 0xFC,
|
|
||||||
0xB1, 0x0A, 0xD5, 0x56, 0x8A, 0x20, 0xA8, 0xA1, 0xBA, 0x49,
|
|
||||||
0x05, 0x7B, 0x89, 0x20, 0xEA, 0x41, 0x04, 0x8F, 0xE2, 0x55,
|
|
||||||
0x29, 0x78, 0xB3, 0x60, 0x0F, 0xA2, 0x07, 0x3D, 0x6E, 0x90,
|
|
||||||
0xA4, 0x37, 0x3D, 0xE9, 0x41, 0xD4, 0xB3, 0x07, 0x3D, 0x79,
|
|
||||||
0x15, 0xC1, 0x83, 0x60, 0x35, 0xC5, 0x4B, 0xD4, 0xA6, 0x26,
|
|
||||||
0x39, 0x94, 0x1E, 0xA4, 0x20, 0x82, 0xB5, 0x75, 0xDB, 0x24,
|
|
||||||
0xBB, 0x3B, 0x23, 0xBB, 0x21, 0xD5, 0xAE, 0x9B, 0x74, 0x4E,
|
|
||||||
0x33, 0xEF, 0xFD, 0x7E, 0xDF, 0xCC, 0x7B, 0x33, 0x23, 0xC4,
|
|
||||||
0x0C, 0xFD, 0x75, 0xF6, 0x24, 0xA2, 0xEF, 0x00, 0x67, 0x00,
|
|
||||||
0x03, 0x98, 0x47, 0xEB, 0xFB, 0x92, 0x2F, 0xBE, 0x8B, 0xCA,
|
|
||||||
0x25, 0x1A, 0xD0, 0xCD, 0xD2, 0x35, 0x94, 0x3C, 0x02, 0xCC,
|
|
||||||
0x48, 0x4E, 0xA1, 0xB8, 0x25, 0x13, 0xF6, 0xC3, 0x7F, 0xE3,
|
|
||||||
0xDB, 0x00, 0x7A, 0xB1, 0x54, 0xC0, 0x90, 0x0F, 0x31, 0xE6,
|
|
||||||
0xAE, 0x47, 0xC4, 0x07, 0x75, 0x56, 0xAC, 0x62, 0xA5, 0x07,
|
|
||||||
0xD9, 0x0E, 0x68, 0x94, 0x9F, 0xA1, 0x99, 0x8A, 0x2B, 0x6B,
|
|
||||||
0x2B, 0xA6, 0x79, 0x2E, 0x79, 0xFB, 0x4A, 0x3F, 0x40, 0x03,
|
|
||||||
0xCD, 0x31, 0xB4, 0x0B, 0xDE, 0x2F, 0x48, 0xEE, 0xEF, 0xEA,
|
|
||||||
0xDC, 0x1F, 0x60, 0x0E, 0x83, 0x24, 0x41, 0x68, 0x8A, 0x65,
|
|
||||||
0x5B, 0xF1, 0x80, 0x7A, 0xB9, 0x06, 0x4C, 0xA0, 0x15, 0x6C,
|
|
||||||
0xD6, 0xC1, 0xDC, 0xDB, 0xD5, 0x79, 0xAB, 0xB0, 0x2B, 0x07,
|
|
||||||
0x12, 0xF4, 0x93, 0x45, 0xC9, 0xD9, 0xC7, 0xFB, 0x01, 0x9E,
|
|
||||||
0x00, 0xD3, 0x61, 0xB2, 0x07, 0x09, 0xE6, 0x7F, 0xCD, 0xC1,
|
|
||||||
0x09, 0x1E, 0x8B, 0x65, 0x5F, 0x8F, 0x07, 0x34, 0xCB, 0xE3,
|
|
||||||
0x28, 0x3E, 0x07, 0x96, 0x50, 0xD0, 0x59, 0x09, 0x3A, 0x07,
|
|
||||||
0xA9, 0x03, 0x3D, 0xBD, 0x83, 0xE6, 0x84, 0xE4, 0xED, 0xA5,
|
|
||||||
0x58, 0x40, 0xB8, 0x71, 0xA3, 0x74, 0x1B, 0x2D, 0xF7, 0x62,
|
|
||||||
0x01, 0xA2, 0x6F, 0x8A, 0x55, 0x7C, 0xD0, 0xF7, 0x1A, 0x43,
|
|
||||||
0x40, 0xF3, 0x46, 0x1A, 0x35, 0xF6, 0x0D, 0x18, 0x8D, 0x9C,
|
|
||||||
0x60, 0x05, 0xCB, 0x3F, 0x24, 0x72, 0xD7, 0x1B, 0x08, 0x08,
|
|
||||||
0x21, 0xF5, 0xF2, 0x6B, 0xE0, 0x42, 0x00, 0xD0, 0x18, 0xB4,
|
|
||||||
0x93, 0x47, 0x71, 0x18, 0x99, 0x1F, 0xCD, 0x5D, 0x3D, 0x2D,
|
|
||||||
0x22, 0x6A, 0x20, 0xE0, 0xA3, 0xD6, 0x49, 0xA7, 0x52, 0x79,
|
|
||||||
0x6F, 0x26, 0xA4, 0x90, 0x49, 0x9B, 0x78, 0x64, 0xD8, 0x68,
|
|
||||||
0x2B, 0x7C, 0xE5, 0xD7, 0xC6, 0xC7, 0x86, 0x0B, 0xD9, 0x6C,
|
|
||||||
0xB6, 0x35, 0x10, 0xF0, 0x62, 0x61, 0x21, 0x95, 0xF9, 0xBE,
|
|
||||||
0x3E, 0xF7, 0x7B, 0x63, 0xB3, 0xD0, 0xEE, 0xB8, 0x98, 0x66,
|
|
||||||
0x82, 0x4C, 0x3A, 0xC5, 0x9E, 0xA1, 0xA1, 0x5A, 0xFE, 0xE0,
|
|
||||||
0xC8, 0xCE, 0x80, 0x6A, 0xB5, 0xBA, 0x7B, 0xD5, 0x33, 0xBF,
|
|
||||||
0x24, 0x0C, 0xE3, 0x48, 0xB0, 0x53, 0xAB, 0xD3, 0xA1, 0xD5,
|
|
||||||
0x6A, 0xE3, 0x6B, 0xF5, 0xF6, 0xD2, 0xB9, 0x53, 0xE7, 0x77,
|
|
||||||
0x2C, 0x21, 0x30, 0xBD, 0x7C, 0x33, 0x37, 0xD5, 0x6A, 0xBB,
|
|
||||||
0xB3, 0x86, 0x48, 0x36, 0x7C, 0x88, 0x9E, 0xBF, 0xB4, 0xE6,
|
|
||||||
0x38, 0x33, 0x33, 0x97, 0x2F, 0xBE, 0x8A, 0x3E, 0xF3, 0xFF,
|
|
||||||
0x7E, 0x63, 0x4F, 0xF0, 0x69, 0x79, 0x79, 0x9F, 0xEB, 0xB8,
|
|
||||||
0xD3, 0x41, 0xC7, 0xD2, 0x5E, 0xF2, 0xE9, 0xE4, 0xE4, 0xE1,
|
|
||||||
0x9F, 0x51, 0x73, 0xB0, 0xFE, 0x03, 0xD7, 0x38, 0xAF, 0x11,
|
|
||||||
0x77, 0x41, 0x94, 0x64, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45,
|
|
||||||
0x4E, 0x44, 0xAE, 0x42, 0x60, 0x82, 0xF3, 0x2E, 0x2C, 0x55,
|
|
||||||
0x13, 0x02, 0x00, 0x00};
|
|
@ -1,46 +0,0 @@
|
|||||||
// filename: index.html.gz.h
|
|
||||||
#define index_html_gz_len 428
|
|
||||||
const char index_html_gz[] = {
|
|
||||||
0x1F, 0x8B, 0x08, 0x00, 0xB2, 0x41, 0xD3, 0x60, 0x02, 0xFF,
|
|
||||||
0xB5, 0x54, 0xC1, 0x4E, 0xE3, 0x30, 0x10, 0xBD, 0x23, 0xED,
|
|
||||||
0x3F, 0x0C, 0xBE, 0xB7, 0xA1, 0x2B, 0x6D, 0xC5, 0x21, 0xED,
|
|
||||||
0x05, 0x38, 0x83, 0xB4, 0x5C, 0xF6, 0x54, 0x39, 0xCE, 0x34,
|
|
||||||
0x31, 0x38, 0xB6, 0x65, 0x4F, 0x4B, 0xBB, 0x5F, 0x8F, 0x33,
|
|
||||||
0x71, 0x69, 0x60, 0xB3, 0x88, 0x0B, 0x97, 0x78, 0xEC, 0xF7,
|
|
||||||
0xFC, 0xDE, 0x1B, 0x27, 0x4E, 0x79, 0x79, 0x7B, 0x7F, 0xF3,
|
|
||||||
0xF8, 0xE7, 0xE1, 0x0E, 0x5A, 0xEA, 0xCC, 0xFA, 0xC7, 0x45,
|
|
||||||
0x99, 0x47, 0x80, 0xB2, 0x45, 0x59, 0x73, 0x95, 0x6A, 0xD2,
|
|
||||||
0x64, 0x70, 0x7D, 0xF7, 0xFB, 0xE1, 0xFA, 0xE7, 0x72, 0x09,
|
|
||||||
0x8F, 0x01, 0xBD, 0x47, 0x6B, 0xB4, 0x6A, 0xA9, 0x2C, 0x06,
|
|
||||||
0x2C, 0x13, 0x2F, 0x67, 0x33, 0xE8, 0xA4, 0xB6, 0x10, 0xE9,
|
|
||||||
0x68, 0x10, 0x62, 0x8B, 0x48, 0x30, 0x9B, 0x9D, 0x60, 0xA3,
|
|
||||||
0xED, 0x33, 0xB4, 0x01, 0xB7, 0x2B, 0x51, 0x6C, 0xE5, 0x5E,
|
|
||||||
0x2B, 0x67, 0xE7, 0xDE, 0x36, 0x02, 0x02, 0x9A, 0x95, 0xE8,
|
|
||||||
0xA7, 0x02, 0xE8, 0xE8, 0x31, 0xD5, 0x9D, 0x6C, 0xB0, 0x60,
|
|
||||||
0x2C, 0xEA, 0xBF, 0x18, 0x57, 0x62, 0xB1, 0x3C, 0x2C, 0x96,
|
|
||||||
0x62, 0x4A, 0x89, 0xBD, 0xE6, 0x2A, 0xC6, 0xAC, 0xC3, 0x73,
|
|
||||||
0xB6, 0x3E, 0xA9, 0x11, 0x1E, 0xA8, 0xE8, 0x09, 0x69, 0x3B,
|
|
||||||
0x37, 0x57, 0xBC, 0x75, 0x57, 0x56, 0xAE, 0x3E, 0x9E, 0x54,
|
|
||||||
0x6B, 0xBD, 0x07, 0x65, 0x64, 0x4C, 0x76, 0xE4, 0x7C, 0x25,
|
|
||||||
0xC3, 0xC9, 0x0F, 0x60, 0xAA, 0x79, 0xB8, 0x71, 0x96, 0x82,
|
|
||||||
0x33, 0x06, 0x43, 0x16, 0x28, 0x92, 0xC2, 0x84, 0x98, 0x1A,
|
|
||||||
0x78, 0x67, 0xB5, 0x31, 0x58, 0x05, 0xDD, 0xB4, 0x64, 0x71,
|
|
||||||
0x88, 0x97, 0xF1, 0x91, 0xD0, 0x7B, 0xB6, 0xB3, 0x6E, 0xBB,
|
|
||||||
0x3D, 0x13, 0x01, 0xC8, 0x35, 0x4D, 0x3A, 0x6A, 0x69, 0xCC,
|
|
||||||
0x79, 0xAD, 0x34, 0xB2, 0x42, 0x03, 0xBA, 0x5E, 0x09, 0xB3,
|
|
||||||
0xC9, 0x3B, 0xCA, 0x82, 0x17, 0xD7, 0xFF, 0xB0, 0xB2, 0x70,
|
|
||||||
0x7C, 0xD1, 0xA4, 0xDA, 0xB1, 0x72, 0x62, 0x68, 0xEB, 0x77,
|
|
||||||
0x94, 0x0F, 0x51, 0xB5, 0xA8, 0x9E, 0x2B, 0x77, 0xF8, 0x40,
|
|
||||||
0x89, 0x5E, 0xDA, 0x37, 0x0D, 0xA3, 0x6B, 0x0C, 0x10, 0xDC,
|
|
||||||
0xCE, 0xD6, 0xBD, 0x63, 0x8F, 0x8D, 0x0D, 0x3F, 0x44, 0xF8,
|
|
||||||
0x7F, 0x97, 0xFE, 0xA5, 0x13, 0xEB, 0xE9, 0x7E, 0xFA, 0x6A,
|
|
||||||
0xC3, 0xF8, 0x44, 0x47, 0xE3, 0xBC, 0x41, 0xDA, 0x06, 0x05,
|
|
||||||
0x74, 0xDA, 0xA6, 0x8F, 0x27, 0x8D, 0xF2, 0x90, 0xC6, 0xAB,
|
|
||||||
0x2B, 0x01, 0x7B, 0x69, 0x76, 0x09, 0xFF, 0x95, 0xCA, 0x6C,
|
|
||||||
0xC7, 0xD4, 0x21, 0xBC, 0x60, 0x17, 0x5E, 0x58, 0x7C, 0xE5,
|
|
||||||
0x7D, 0x90, 0xEE, 0x30, 0x7C, 0x9A, 0x35, 0x33, 0xBE, 0x31,
|
|
||||||
0x2D, 0x3B, 0x6C, 0x06, 0x85, 0xC9, 0xC8, 0xE3, 0x9A, 0x9F,
|
|
||||||
0xC3, 0x25, 0xC8, 0x9F, 0x3E, 0x4F, 0xA2, 0x0A, 0xDA, 0x13,
|
|
||||||
0xC4, 0xA0, 0xD2, 0x8D, 0xE2, 0x60, 0xF3, 0xA7, 0xC8, 0xEF,
|
|
||||||
0x90, 0x01, 0xA6, 0xA5, 0x6B, 0x33, 0xFC, 0x1E, 0x5E, 0x01,
|
|
||||||
0xA6, 0x28, 0x83, 0xDC, 0x38, 0x04, 0x00, 0x00};
|
|
@ -1,24 +0,0 @@
|
|||||||
// filename: input.js.gz.h
|
|
||||||
#define input_js_gz_len 205
|
|
||||||
const char input_js_gz[] = {
|
|
||||||
0x1F, 0x8B, 0x08, 0x00, 0xB2, 0x41, 0xD3, 0x60, 0x02, 0xFF,
|
|
||||||
0x7D, 0xCF, 0x31, 0x0B, 0xC2, 0x30, 0x10, 0x05, 0xE0, 0x3D,
|
|
||||||
0x90, 0xFF, 0x70, 0x38, 0xB5, 0x4B, 0x8B, 0xB3, 0xB8, 0x88,
|
|
||||||
0x82, 0x82, 0x6E, 0x3A, 0xCB, 0xD1, 0x9C, 0x6D, 0x20, 0xBD,
|
|
||||||
0x94, 0xF4, 0x52, 0x29, 0xE2, 0x7F, 0xB7, 0xB6, 0x75, 0x10,
|
|
||||||
0xC4, 0xED, 0x86, 0xEF, 0xF1, 0xDE, 0x75, 0x18, 0xA0, 0x75,
|
|
||||||
0xD6, 0x50, 0x80, 0x35, 0x18, 0x5F, 0xC4, 0x9A, 0x58, 0xB2,
|
|
||||||
0x92, 0x64, 0xE7, 0xE8, 0x7D, 0x6E, 0xFA, 0x83, 0x49, 0x16,
|
|
||||||
0x01, 0xB9, 0xA4, 0xE5, 0x22, 0x5D, 0x69, 0xD5, 0x0D, 0x01,
|
|
||||||
0x1F, 0xA5, 0x89, 0xF2, 0x2F, 0xE0, 0xAE, 0xCD, 0xBD, 0x1E,
|
|
||||||
0xFD, 0x64, 0x33, 0xCB, 0x4C, 0x61, 0x7F, 0x3E, 0x1D, 0x87,
|
|
||||||
0xD4, 0xD4, 0x97, 0x75, 0xE8, 0x22, 0xAD, 0x20, 0xCF, 0x61,
|
|
||||||
0x6B, 0xDB, 0xC6, 0x61, 0x0F, 0x52, 0x11, 0x18, 0xBA, 0x61,
|
|
||||||
0x74, 0xF2, 0x19, 0x35, 0x22, 0xAD, 0xB4, 0x1A, 0xD8, 0xA5,
|
|
||||||
0x31, 0x28, 0x34, 0xAA, 0x22, 0x86, 0x30, 0x94, 0x7D, 0x29,
|
|
||||||
0x48, 0x08, 0x8B, 0x0A, 0xC4, 0xD6, 0x04, 0xBD, 0x8F, 0x60,
|
|
||||||
0x02, 0x96, 0x23, 0x9E, 0x51, 0x85, 0x6C, 0x1C, 0xA5, 0x5A,
|
|
||||||
0xCD, 0xFD, 0x9E, 0x2D, 0x4F, 0x6F, 0xDC, 0x22, 0x17, 0x62,
|
|
||||||
0x3D, 0x27, 0x29, 0x3C, 0xB4, 0x02, 0xF8, 0xB1, 0x59, 0x2A,
|
|
||||||
0xDB, 0xCE, 0x8B, 0xB5, 0x7A, 0xBE, 0x00, 0x11, 0xEE, 0x3B,
|
|
||||||
0x97, 0x36, 0x01, 0x00, 0x00};
|
|
@ -1,98 +0,0 @@
|
|||||||
// filename: style.css.gz.h
|
|
||||||
#define style_css_gz_len 948
|
|
||||||
const char style_css_gz[] = {
|
|
||||||
0x1F, 0x8B, 0x08, 0x00, 0xB2, 0x41, 0xD3, 0x60, 0x02, 0xFF,
|
|
||||||
0xBD, 0x55, 0x4B, 0x6F, 0xDB, 0x38, 0x10, 0xBE, 0x1B, 0xF0,
|
|
||||||
0x7F, 0x18, 0xB4, 0x58, 0x20, 0xEE, 0x5A, 0xAE, 0xF2, 0xD8,
|
|
||||||
0x2C, 0xA0, 0x9C, 0x82, 0xB4, 0xDD, 0x1C, 0xB6, 0x28, 0xB0,
|
|
||||||
0xC9, 0x61, 0xAF, 0x14, 0x35, 0xB2, 0x88, 0x50, 0xA2, 0x40,
|
|
||||||
0x52, 0xB1, 0xDD, 0x22, 0xFF, 0x7D, 0x87, 0xA4, 0x24, 0xEB,
|
|
||||||
0xE1, 0x4D, 0x17, 0x0B, 0xB4, 0xF0, 0x45, 0x24, 0xE7, 0xF5,
|
|
||||||
0x7D, 0xF3, 0xCD, 0xB8, 0xB0, 0xA5, 0x84, 0x6F, 0xCB, 0x05,
|
|
||||||
0x40, 0xAE, 0x2A, 0x1B, 0x19, 0xF1, 0x15, 0x13, 0x38, 0x8F,
|
|
||||||
0xEB, 0xFD, 0x4D, 0x7F, 0x97, 0xB3, 0x52, 0xC8, 0x43, 0x02,
|
|
||||||
0x86, 0x55, 0x26, 0x32, 0xA8, 0x45, 0xBE, 0x86, 0x5B, 0x2D,
|
|
||||||
0x98, 0x5C, 0xC3, 0x3D, 0xCA, 0x67, 0xB4, 0x82, 0x33, 0x6F,
|
|
||||||
0x9D, 0x32, 0xFE, 0xB4, 0xD5, 0xAA, 0xA9, 0xB2, 0x88, 0x2B,
|
|
||||||
0xA9, 0x74, 0x02, 0x6F, 0xD3, 0x4B, 0xF7, 0xA3, 0xD7, 0x97,
|
|
||||||
0xE5, 0x62, 0xB9, 0xD8, 0x58, 0x55, 0xA7, 0x4C, 0x87, 0x7C,
|
|
||||||
0x35, 0xCB, 0x32, 0x51, 0x6D, 0x29, 0x1B, 0x96, 0xFF, 0xE6,
|
|
||||||
0x7E, 0x9E, 0xBB, 0xDF, 0x8D, 0xF3, 0x05, 0x68, 0x2F, 0x77,
|
|
||||||
0x85, 0xB0, 0x78, 0x33, 0xA9, 0x78, 0x1F, 0x49, 0xA6, 0xB7,
|
|
||||||
0xE1, 0xDA, 0xE2, 0xDE, 0x46, 0x4C, 0x8A, 0x6D, 0x95, 0x00,
|
|
||||||
0xC7, 0xCA, 0xA2, 0xEE, 0xF3, 0x73, 0xF2, 0xD0, 0x4A, 0x9E,
|
|
||||||
0x2C, 0xC0, 0x5B, 0xD4, 0x6B, 0x90, 0x62, 0xCE, 0xC7, 0x75,
|
|
||||||
0xCB, 0x87, 0x14, 0x15, 0x46, 0x05, 0x8A, 0x6D, 0x61, 0x13,
|
|
||||||
0xB8, 0x08, 0x57, 0x68, 0x29, 0x43, 0x64, 0x6A, 0xC6, 0x43,
|
|
||||||
0x30, 0x6F, 0xEA, 0x83, 0x2D, 0x17, 0xA9, 0xCA, 0x0E, 0x21,
|
|
||||||
0x5A, 0x49, 0xE5, 0x09, 0x2A, 0x28, 0x06, 0xD6, 0x58, 0x15,
|
|
||||||
0xF0, 0x2A, 0x9D, 0xA1, 0xF6, 0x1E, 0x60, 0x94, 0x14, 0x19,
|
|
||||||
0xA4, 0x92, 0x28, 0x18, 0xBC, 0x45, 0x9A, 0x65, 0xA2, 0x31,
|
|
||||||
0x09, 0x5C, 0x1E, 0x43, 0x2E, 0x17, 0xEF, 0xDF, 0xC1, 0x63,
|
|
||||||
0x81, 0x60, 0x76, 0xC2, 0xF2, 0x02, 0x22, 0xB0, 0x74, 0x48,
|
|
||||||
0xD5, 0x1E, 0x98, 0xE7, 0xCE, 0x1F, 0x0D, 0x45, 0x43, 0x0D,
|
|
||||||
0xEF, 0xDE, 0x13, 0xE6, 0xD6, 0x2E, 0x40, 0x56, 0x46, 0x58,
|
|
||||||
0xA1, 0xA8, 0x0E, 0x8D, 0x92, 0x59, 0xF1, 0x1C, 0x18, 0xCB,
|
|
||||||
0x84, 0xA9, 0x25, 0xA3, 0x16, 0x8B, 0xCA, 0x23, 0x4C, 0xA5,
|
|
||||||
0x6A, 0xEB, 0xD8, 0x89, 0xCC, 0x16, 0x09, 0x5C, 0x77, 0x82,
|
|
||||||
0xE8, 0xB0, 0x5F, 0x5E, 0x1D, 0x61, 0x52, 0x3D, 0xF7, 0x94,
|
|
||||||
0x0E, 0x32, 0xCC, 0x59, 0x23, 0x2D, 0xDC, 0x3F, 0x7E, 0xFE,
|
|
||||||
0x13, 0x78, 0x81, 0xFC, 0xC9, 0x55, 0x35, 0xAC, 0x41, 0x54,
|
|
||||||
0x75, 0x63, 0x43, 0x25, 0xCA, 0xF1, 0x65, 0x29, 0x65, 0x3C,
|
|
||||||
0xCC, 0x13, 0x8F, 0x92, 0xC4, 0x83, 0x0C, 0x8F, 0x53, 0x54,
|
|
||||||
0xE1, 0x7B, 0x82, 0x8A, 0xA5, 0x44, 0x64, 0xD3, 0xCA, 0x83,
|
|
||||||
0x37, 0xDA, 0x38, 0xC1, 0xD4, 0x4A, 0xB4, 0x22, 0x20, 0x6D,
|
|
||||||
0xA8, 0xBA, 0xCB, 0x22, 0x31, 0xB7, 0xDD, 0xB7, 0x3E, 0x26,
|
|
||||||
0x74, 0xDC, 0x5B, 0xAB, 0xCA, 0xFE, 0x34, 0x57, 0x25, 0xE7,
|
|
||||||
0xDC, 0x3F, 0x45, 0x3B, 0x4C, 0x9F, 0x84, 0x8D, 0xAC, 0xA6,
|
|
||||||
0xC9, 0x68, 0x2B, 0xD8, 0x5C, 0x99, 0x90, 0x68, 0x76, 0x17,
|
|
||||||
0x14, 0x18, 0xEA, 0x4E, 0x52, 0xCC, 0x95, 0xC6, 0xD7, 0xCB,
|
|
||||||
0x27, 0xFD, 0x91, 0x7A, 0x13, 0x78, 0xF3, 0x66, 0xC4, 0xCA,
|
|
||||||
0x45, 0x27, 0xC6, 0x96, 0xB3, 0xFE, 0x1C, 0x00, 0x5D, 0xB5,
|
|
||||||
0xA7, 0x0E, 0x45, 0x7F, 0x9E, 0xE1, 0x38, 0x0E, 0xD2, 0xFF,
|
|
||||||
0x00, 0xE2, 0x5B, 0x99, 0xF8, 0x2E, 0x63, 0x06, 0xBF, 0xC2,
|
|
||||||
0xA8, 0x21, 0x27, 0x38, 0x8B, 0xAF, 0x6E, 0x6F, 0xAF, 0x3F,
|
|
||||||
0x8C, 0xBD, 0x73, 0xC5, 0x1B, 0x33, 0xF3, 0x55, 0xFB, 0xC8,
|
|
||||||
0x14, 0x2C, 0x53, 0x3B, 0x37, 0x2C, 0xB1, 0x9F, 0x8E, 0x93,
|
|
||||||
0xDE, 0xB3, 0xDC, 0x23, 0x52, 0x47, 0x90, 0xE8, 0x9A, 0x98,
|
|
||||||
0xF0, 0x9F, 0xA4, 0x7A, 0xFC, 0xFB, 0xCC, 0x71, 0xB6, 0x0A,
|
|
||||||
0xD0, 0x4B, 0xF3, 0x5D, 0x9B, 0xD7, 0xDF, 0x5F, 0xBC, 0x3E,
|
|
||||||
0xFF, 0x72, 0x68, 0xA9, 0x9A, 0x50, 0x8A, 0x19, 0x8A, 0x74,
|
|
||||||
0x13, 0xE6, 0xF2, 0xDB, 0xA9, 0xB9, 0xEE, 0xC7, 0x68, 0x64,
|
|
||||||
0x3B, 0x42, 0x32, 0x71, 0xF9, 0x2D, 0xFE, 0x65, 0xB8, 0x0C,
|
|
||||||
0xA6, 0xC3, 0x21, 0xAC, 0x41, 0x99, 0x87, 0xF4, 0x54, 0xEB,
|
|
||||||
0x16, 0x87, 0xDC, 0x76, 0xA4, 0xB0, 0xBA, 0x46, 0x46, 0xAF,
|
|
||||||
0x9C, 0x76, 0x5B, 0xA5, 0x2A, 0xBC, 0x01, 0xA0, 0x28, 0x5F,
|
|
||||||
0x9E, 0x51, 0xEB, 0xE1, 0x20, 0xDF, 0x3D, 0x3C, 0x80, 0xB1,
|
|
||||||
0x07, 0x89, 0x01, 0x0E, 0xC0, 0xCC, 0x6F, 0x20, 0x43, 0x57,
|
|
||||||
0x97, 0x8B, 0xF2, 0xA9, 0x91, 0x32, 0xF2, 0x77, 0xAD, 0xD3,
|
|
||||||
0x68, 0x65, 0x38, 0x8B, 0x87, 0x1A, 0xB9, 0xC8, 0x05, 0x91,
|
|
||||||
0x15, 0x9E, 0x5A, 0xBB, 0x53, 0xD4, 0x38, 0x73, 0x8F, 0x02,
|
|
||||||
0x02, 0x87, 0x5C, 0xE9, 0xAA, 0x63, 0x77, 0x28, 0x33, 0x12,
|
|
||||||
0x58, 0x76, 0xE9, 0x7E, 0xDE, 0xE3, 0x0F, 0x8D, 0x87, 0xC1,
|
|
||||||
0x63, 0x6B, 0xAD, 0x1A, 0xEB, 0x96, 0x5B, 0x87, 0xD8, 0xF5,
|
|
||||||
0x0C, 0x4B, 0xF5, 0x8C, 0xDD, 0x43, 0x67, 0xD6, 0x2F, 0xA6,
|
|
||||||
0xCD, 0xEF, 0xA1, 0x5C, 0xB4, 0xA1, 0xED, 0x35, 0xD3, 0x58,
|
|
||||||
0xF1, 0x03, 0x9C, 0x51, 0x6F, 0xA0, 0x54, 0x8D, 0xC1, 0x88,
|
|
||||||
0xDC, 0x35, 0x60, 0x9E, 0x23, 0xB7, 0x06, 0x54, 0x05, 0x85,
|
|
||||||
0xBB, 0x58, 0xB5, 0x91, 0x4E, 0x4E, 0xD5, 0x85, 0xF1, 0x41,
|
|
||||||
0xE3, 0xCD, 0x05, 0x18, 0xA4, 0x11, 0xCF, 0xCC, 0x60, 0xC2,
|
|
||||||
0xFA, 0x10, 0x6D, 0x84, 0xA1, 0x67, 0x5B, 0x97, 0x8F, 0xE0,
|
|
||||||
0xDA, 0x1E, 0x64, 0xF7, 0x79, 0x5E, 0xC6, 0xB4, 0xF5, 0x49,
|
|
||||||
0x88, 0x38, 0xDE, 0xBA, 0xE7, 0x7D, 0xAF, 0x0E, 0x60, 0x0A,
|
|
||||||
0xB5, 0xF3, 0xA9, 0x07, 0x98, 0x5C, 0x90, 0x97, 0xA9, 0xB6,
|
|
||||||
0x0A, 0x56, 0x65, 0x12, 0xE1, 0x8C, 0xAC, 0x7A, 0x70, 0x70,
|
|
||||||
0x76, 0x57, 0x68, 0x55, 0xE2, 0x1A, 0xBE, 0xD4, 0xA8, 0xD9,
|
|
||||||
0x1A, 0x1E, 0x58, 0xCE, 0xB4, 0x58, 0xC3, 0xC7, 0x6C, 0x8B,
|
|
||||||
0x2B, 0x20, 0x0F, 0x1A, 0x31, 0xF5, 0x95, 0xEC, 0x3E, 0x09,
|
|
||||||
0x4D, 0xAA, 0xDE, 0xAF, 0x68, 0x07, 0x83, 0x9A, 0x4A, 0x4D,
|
|
||||||
0x2A, 0xF5, 0xB4, 0x9A, 0x97, 0x9E, 0x74, 0x69, 0xC2, 0x39,
|
|
||||||
0xB2, 0x45, 0x53, 0xA6, 0xDF, 0xD3, 0xF2, 0x29, 0x29, 0xBB,
|
|
||||||
0xF8, 0xFF, 0x41, 0xC4, 0x7E, 0x97, 0x76, 0x4D, 0x67, 0x60,
|
|
||||||
0x82, 0x52, 0xF9, 0x84, 0x80, 0x53, 0xEA, 0x3E, 0x7A, 0x8E,
|
|
||||||
0x4C, 0x5F, 0x53, 0x78, 0x37, 0x31, 0x7E, 0x75, 0xC0, 0x47,
|
|
||||||
0x89, 0x25, 0xAD, 0xFB, 0x53, 0xD2, 0x6E, 0xB7, 0x5F, 0x2B,
|
|
||||||
0x6D, 0xAC, 0xE6, 0xDA, 0x9E, 0xFE, 0xD5, 0x39, 0xD3, 0x3B,
|
|
||||||
0x7F, 0x37, 0x96, 0xD4, 0xCB, 0x8C, 0x5F, 0xD7, 0x1B, 0x7F,
|
|
||||||
0x33, 0xE4, 0xF6, 0xE7, 0xB0, 0xF1, 0xC3, 0x20, 0xFE, 0x03,
|
|
||||||
0xF9, 0xD5, 0xDB, 0xFC, 0xD4, 0x0A, 0x00, 0x00};
|
|
@ -28,8 +28,8 @@ def convert_to_gzip(src, out, f):
|
|||||||
f_out.write(top.encode(encoding='utf-8'))
|
f_out.write(top.encode(encoding='utf-8'))
|
||||||
|
|
||||||
|
|
||||||
src='data/'
|
src='include/http/'
|
||||||
out='compress/'
|
out='include/'
|
||||||
|
|
||||||
for f in os.listdir(src):
|
for f in os.listdir(src):
|
||||||
convert_to_gzip(src, out, f)
|
convert_to_gzip(src, out, f)
|
BIN
data/favicon.png
BIN
data/favicon.png
Binary file not shown.
Before Width: | Height: | Size: 531 B |
@ -1,40 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>ESP8266 Treppenlicht</title>
|
|
||||||
<!-- main style sheet -->
|
|
||||||
<link href="/favicon.png" rel="icon" type="image/png" sizes="16x16">
|
|
||||||
<link href="/style.css" rel="stylesheet" type="text/css">
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="topbar">
|
|
||||||
ESP8266 Treppenlicht Controller
|
|
||||||
</div>
|
|
||||||
<div class="control">
|
|
||||||
<div class="brightness">
|
|
||||||
</div>
|
|
||||||
<div class="onoff">
|
|
||||||
toggle all
|
|
||||||
<label id="l_onoff"></label>
|
|
||||||
<label class="switch">
|
|
||||||
<input type="checkbox">
|
|
||||||
<span class="slider round"></span>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div class="pwm">
|
|
||||||
<label id="label_pwm"></label>
|
|
||||||
<input type="range" min="1" max="100" value="50" class="rangeslider" id="range1">
|
|
||||||
</div>
|
|
||||||
<div class="timer">
|
|
||||||
<label id="label_timer"></label>
|
|
||||||
<input type="range" min="1" max="100" value="50" class="rangeslider" id="timer_range">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
|
||||||
|
|
||||||
<script src="/input.js"></script>
|
|
||||||
|
|
||||||
</html>
|
|
@ -1,8 +0,0 @@
|
|||||||
var slider = document.getElementById("range1");
|
|
||||||
var output = document.getElementById("l_pwm");
|
|
||||||
output.innerHTML = slider.value; // Display the default slider value
|
|
||||||
|
|
||||||
// Update the current slider value (each time you drag the slider handle)
|
|
||||||
slider.oninput = function() {
|
|
||||||
output.innerHTML = this.value;
|
|
||||||
}
|
|
132
data/style.css
132
data/style.css
@ -1,132 +0,0 @@
|
|||||||
html {
|
|
||||||
font-size: 10px;
|
|
||||||
font-family: sans-serif, Arial, Helvetica;
|
|
||||||
background-color: #b3b3b3;
|
|
||||||
}
|
|
||||||
|
|
||||||
.topbar {
|
|
||||||
padding: 1em;
|
|
||||||
background-color: #1f1f1f;
|
|
||||||
|
|
||||||
color: white;
|
|
||||||
font-size: x-large;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.control {
|
|
||||||
padding: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
p, li {
|
|
||||||
font-size: 16px;
|
|
||||||
line-height: 2;
|
|
||||||
letter-spacing: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
body {
|
|
||||||
margin: 0 auto;
|
|
||||||
border: 1px solid black;
|
|
||||||
border-radius: 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* The switch - the box around the slider */
|
|
||||||
.switch {
|
|
||||||
position: relative;
|
|
||||||
display: inline-block;
|
|
||||||
width: 60px;
|
|
||||||
height: 34px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Hide default HTML checkbox */
|
|
||||||
.switch input {
|
|
||||||
opacity: 0;
|
|
||||||
width: 0;
|
|
||||||
height: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* The slider */
|
|
||||||
.slider {
|
|
||||||
position: absolute;
|
|
||||||
cursor: pointer;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
background-color: #ccc;
|
|
||||||
-webkit-transition: .4s;
|
|
||||||
transition: .4s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.slider:before {
|
|
||||||
position: absolute;
|
|
||||||
content: "";
|
|
||||||
height: 26px;
|
|
||||||
width: 26px;
|
|
||||||
left: 4px;
|
|
||||||
bottom: 4px;
|
|
||||||
background-color: white;
|
|
||||||
-webkit-transition: .4s;
|
|
||||||
transition: .4s;
|
|
||||||
}
|
|
||||||
|
|
||||||
input:checked + .slider {
|
|
||||||
background-color: #04AA6D;
|
|
||||||
}
|
|
||||||
|
|
||||||
input:focus + .slider {
|
|
||||||
box-shadow: 0 0 1px #04AA6D;
|
|
||||||
}
|
|
||||||
|
|
||||||
input:checked + .slider:before {
|
|
||||||
-webkit-transform: translateX(26px);
|
|
||||||
-ms-transform: translateX(26px);
|
|
||||||
transform: translateX(26px);
|
|
||||||
}
|
|
||||||
/* Rounded sliders */
|
|
||||||
.slider.round {
|
|
||||||
border-radius: 34px;
|
|
||||||
}
|
|
||||||
.slider.round:before {
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* The slider itself */
|
|
||||||
.rangeslider {
|
|
||||||
-webkit-appearance: none; /* Override default CSS styles */
|
|
||||||
appearance: none;
|
|
||||||
width: 50%; /* Full-width */
|
|
||||||
height: 34px; /* Specified height */
|
|
||||||
border-radius: 34px; /* range round corners */
|
|
||||||
background: #d3d3d3; /* Grey background */
|
|
||||||
outline: none; /* Remove outline */
|
|
||||||
opacity: 0.7; /* Set transparency (for mouse-over effects on hover) */
|
|
||||||
-webkit-transition: .2s; /* 0.2 seconds transition on hover */
|
|
||||||
transition: opacity .2s;
|
|
||||||
|
|
||||||
}
|
|
||||||
/* Mouse-over effects */
|
|
||||||
.rangeslider:hover {
|
|
||||||
opacity: 1; /* Fully shown on mouse-over */
|
|
||||||
}
|
|
||||||
/* The slider handle (use -webkit- (Chrome, Opera, Safari, Edge) and -moz- (Firefox) to override default look) */
|
|
||||||
.rangeslider::-webkit-slider-thumb {
|
|
||||||
-webkit-appearance: none; /* Override default look */
|
|
||||||
appearance: none;
|
|
||||||
width: 26px; /* Set a specific slider handle width */
|
|
||||||
height: 26px; /* Slider handle height */
|
|
||||||
border-radius: 50%; /* Round Element */
|
|
||||||
background: #04AA6D; /* Green background */
|
|
||||||
cursor: pointer; /* Cursor on hover */
|
|
||||||
}
|
|
||||||
.rangeslider::-moz-range-thumb {
|
|
||||||
width: 26px; /* Set a specific slider handle width */
|
|
||||||
height: 26px; /* Slider handle height */
|
|
||||||
background: #04AA6D; /* Green background */
|
|
||||||
cursor: pointer; /* Cursor on hover */
|
|
||||||
}
|
|
30
doku.md
30
doku.md
@ -23,33 +23,3 @@ GDB-Version aus Arduino Toolchain hat Support
|
|||||||
```sh
|
```sh
|
||||||
$ ./start_xtensa_gdb_stub.sh
|
$ ./start_xtensa_gdb_stub.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
### __Achtung !__
|
|
||||||
Don`t forget __\r__
|
|
||||||
|
|
||||||
ESP-OTA wird von ufw oder Defender geblockt.
|
|
||||||
- Windows -> Python needs to be granted with rights
|
|
||||||
- Linux -> open udp port in ufw ->
|
|
||||||
|
|
||||||
```sh
|
|
||||||
platform.ini
|
|
||||||
upload_flags =
|
|
||||||
--host-port <PORT>
|
|
||||||
...
|
|
||||||
$ sudo ufw allow tcp/<PORT>
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
```c++
|
|
||||||
server.streamFile(f, mime::getContentType(SRH::_path), requestMethod);
|
|
||||||
|
|
||||||
=====>
|
|
||||||
|
|
||||||
const String& p = SRH::_path;
|
|
||||||
if(p.endsWith(".gzip")) {
|
|
||||||
server.sendHeader("Content-Encoding", "gzip");
|
|
||||||
server.streamFile(f, mime::getContentType(p.substring(0, p.length()-5)), requestMethod);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
server.streamFile(f, mime::getContentType(SRH::_path), requestMethod);
|
|
||||||
```
|
|
@ -1,16 +0,0 @@
|
|||||||
#ifndef __FILESYS_H
|
|
||||||
#define __FILESYS_H
|
|
||||||
|
|
||||||
#include <LittleFS.h>
|
|
||||||
|
|
||||||
bool mount_fs();
|
|
||||||
bool format_fs();
|
|
||||||
|
|
||||||
void ls(const char * dirname);
|
|
||||||
void readFile(const char * path);
|
|
||||||
void writeFile(const char * path, const char * message);
|
|
||||||
void appendFile(const char * path, const char * message);
|
|
||||||
void renameFile(const char * path1, const char * path2);
|
|
||||||
void deleteFile(const char * path);
|
|
||||||
|
|
||||||
#endif // __FILESYS_H
|
|
BIN
include/http/firefox.png
Normal file
BIN
include/http/firefox.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 54 KiB |
@ -1,48 +1,37 @@
|
|||||||
#ifndef __HTTPSERVER_H
|
#ifndef __HTTPSERVER_H
|
||||||
#define __HTTPSERVER_H
|
#define __HTTPSERVER_H
|
||||||
|
|
||||||
#include "filesys.h"
|
|
||||||
#include <ESP8266WebServer.h>
|
#include <ESP8266WebServer.h>
|
||||||
|
|
||||||
|
class HTTPServer {
|
||||||
class HTTPServer : public ESP8266WebServer {
|
|
||||||
private:
|
private:
|
||||||
const char* rootDir;
|
int port;
|
||||||
|
ESP8266WebServer* server;
|
||||||
bool addRootFileHandler();
|
|
||||||
bool formatFS() {
|
|
||||||
return format_fs();
|
|
||||||
}
|
|
||||||
void listRoot() {
|
|
||||||
ls(rootDir);
|
|
||||||
}
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
HTTPServer(const int _port, const char* _rootDir) :
|
HTTPServer(int port) {
|
||||||
ESP8266WebServer(_port), rootDir(_rootDir)
|
server = new ESP8266WebServer;
|
||||||
{ }
|
|
||||||
~HTTPServer()
|
// server->on("/", handleRootGz);
|
||||||
{
|
// server->on("/style.css", handleCssGz);
|
||||||
Serial.printf("[HTTPServer] shut down ...\n\r");
|
// server->on("/favicon.png", handleFaviconGz);
|
||||||
|
// server->onNotFound(handleNotFound);
|
||||||
|
|
||||||
|
server->begin(port);
|
||||||
|
}
|
||||||
|
~HTTPServer() {
|
||||||
|
server->stop();
|
||||||
|
delete server;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool start() {
|
void initialize() {
|
||||||
if(!mount_fs())
|
server->begin(port);
|
||||||
return false;
|
}
|
||||||
Serial.printf("[HTTPServer] LittleFS mounted !\n\r");
|
|
||||||
|
|
||||||
Serial.printf("[HTTPServer] root:\n\r");
|
void handleClient() {
|
||||||
this->listRoot();
|
server->handleClient();
|
||||||
Serial.printf("\n\r");
|
|
||||||
|
|
||||||
if( this->addRootFileHandler() ){
|
|
||||||
this->begin();
|
|
||||||
Serial.printf("[HTTPServer] Server active on Port 80 !\n\r");
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
Serial.printf("[HTTPServer] Not starting Server, something went wrong !\n\r");
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif // __HTTPSERVER_H
|
#endif // __HTTPSERVER_H
|
130
src/filesys.cpp
130
src/filesys.cpp
@ -1,130 +0,0 @@
|
|||||||
#include "filesys.h"
|
|
||||||
|
|
||||||
// listDir("/");
|
|
||||||
// deleteFile("/hello.txt");
|
|
||||||
// writeFile("/hello.txt", "Hello ");
|
|
||||||
// appendFile("/hello.txt", "World!\n\r");
|
|
||||||
// readFile("/hello.txt");
|
|
||||||
// listDir("/");
|
|
||||||
|
|
||||||
FSInfo fsinfo;
|
|
||||||
|
|
||||||
bool mount_fs() {
|
|
||||||
if(!LittleFS.begin()) {
|
|
||||||
Serial.println("[ERROR] LittleFS.info(), reset ...");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!LittleFS.info(fsinfo)) {
|
|
||||||
Serial.println("[ERROR] LittleFS.info(), reset ...");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
printf("Filesystem opened:\n\r");
|
|
||||||
printf("\ttotalBytes:\t%d\n\r", fsinfo.totalBytes);
|
|
||||||
printf("\tusedBytes:\t%d\n\r", fsinfo.usedBytes);
|
|
||||||
printf("\tblockSize:\t%d\n\r", fsinfo.blockSize);
|
|
||||||
printf("\tpageSize:\t%d\n\r", fsinfo.pageSize);
|
|
||||||
printf("\tmaxOpenFiles:\t%d\n\r", fsinfo.maxOpenFiles);
|
|
||||||
printf("\tmaxPathLength:\t%d\n\r", fsinfo.maxPathLength);
|
|
||||||
printf("\n\r");
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool format_fs() {
|
|
||||||
printf("Formatting FS ! \n\r");
|
|
||||||
return LittleFS.format();
|
|
||||||
}
|
|
||||||
|
|
||||||
void ls(const char * dirname) {
|
|
||||||
Serial.printf("ls -l %s\n\r", dirname);
|
|
||||||
Dir root = LittleFS.openDir(dirname);
|
|
||||||
|
|
||||||
while (root.next()) {
|
|
||||||
File file = root.openFile("r");
|
|
||||||
|
|
||||||
time_t lw = file.getLastWrite();
|
|
||||||
struct tm * tmstruct = localtime(&lw);
|
|
||||||
Serial.printf("%8d %02d %02d %02d:%02d %s\n\r",
|
|
||||||
file.size(),
|
|
||||||
tmstruct->tm_mon + 1,
|
|
||||||
tmstruct->tm_mday,
|
|
||||||
tmstruct->tm_hour,
|
|
||||||
tmstruct->tm_min,
|
|
||||||
root.fileName().c_str());
|
|
||||||
file.close();
|
|
||||||
}
|
|
||||||
Serial.println();
|
|
||||||
}
|
|
||||||
|
|
||||||
void readFile(const char * path) {
|
|
||||||
Serial.printf("Reading file: %s\n\r", path);
|
|
||||||
|
|
||||||
File file = LittleFS.open(path, "r");
|
|
||||||
if (!file) {
|
|
||||||
Serial.println("Failed to open file for reading");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Serial.print("Read from file: ");
|
|
||||||
while (file.available()) {
|
|
||||||
Serial.write(file.read());
|
|
||||||
}
|
|
||||||
file.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
void writeFile(const char * path, const char * message) {
|
|
||||||
Serial.printf("Writing file: %s\n\r", path);
|
|
||||||
|
|
||||||
File file = LittleFS.open(path, "w");
|
|
||||||
if (!file) {
|
|
||||||
Serial.println("Failed to open file for writing");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (file.print(message)) {
|
|
||||||
Serial.println("File written");
|
|
||||||
} else {
|
|
||||||
Serial.println("Write failed");
|
|
||||||
}
|
|
||||||
delay(2000); // Make sure the CREATE and LASTWRITE times are different
|
|
||||||
file.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
void appendFile(const char * path, const char * message) {
|
|
||||||
Serial.printf("Appending to file: %s\n\r", path);
|
|
||||||
|
|
||||||
File file = LittleFS.open(path, "a");
|
|
||||||
if (!file) {
|
|
||||||
Serial.println("Failed to open file for appending");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if(file.print(message)) {
|
|
||||||
Serial.println("Message appended");
|
|
||||||
} else {
|
|
||||||
Serial.println("Append failed");
|
|
||||||
}
|
|
||||||
file.close();
|
|
||||||
}
|
|
||||||
|
|
||||||
void renameFile(const char * path1, const char * path2) {
|
|
||||||
Serial.printf("Renaming file %s to %s\n\r", path1, path2);
|
|
||||||
if (LittleFS.rename(path1, path2)) {
|
|
||||||
Serial.println("File renamed");
|
|
||||||
} else {
|
|
||||||
Serial.println("Rename failed");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void deleteFile(const char * path) {
|
|
||||||
Serial.printf("Deleting file: %s\n\r", path);
|
|
||||||
if (LittleFS.remove(path)) {
|
|
||||||
Serial.println("File deleted");
|
|
||||||
} else {
|
|
||||||
Serial.println("Delete failed");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,17 +0,0 @@
|
|||||||
#include "httpserver.h"
|
|
||||||
|
|
||||||
|
|
||||||
bool HTTPServer::addRootFileHandler() {
|
|
||||||
|
|
||||||
// //experimental, see doku.md
|
|
||||||
// server.serveStatic("/compressed", LittleFS, "/compressed.html.gzip");
|
|
||||||
|
|
||||||
this->serveStatic("", LittleFS, "/index.html");
|
|
||||||
this->serveStatic("/", LittleFS, "/index.html");
|
|
||||||
this->serveStatic("/#", LittleFS, "/index.html");
|
|
||||||
this->serveStatic("/style.css", LittleFS, "/style.css");
|
|
||||||
this->serveStatic("/input.js", LittleFS, "/input.js");
|
|
||||||
this->serveStatic("/favicon.png", LittleFS, "/favicon.png");
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
178
src/main.cpp
178
src/main.cpp
@ -13,49 +13,123 @@ extern "C" {
|
|||||||
#define ESP12_LED 2
|
#define ESP12_LED 2
|
||||||
#define NODEMCU_LED 16
|
#define NODEMCU_LED 16
|
||||||
|
|
||||||
|
|
||||||
|
os_timer_t Timer1; // Verwaltungsstruktur des Timers
|
||||||
|
|
||||||
|
int c;
|
||||||
|
bool toggle = false;
|
||||||
|
uint32_t m=0;
|
||||||
|
|
||||||
|
uint32_t dimmtimer = 0;
|
||||||
|
uint8_t direction = 1;
|
||||||
|
uint8_t onoff = 1;
|
||||||
|
|
||||||
|
|
||||||
|
void ledsequence(uint8_t direction, uint8_t onoff, uint8_t factor);
|
||||||
|
uint8_t softstart_led(uint8_t led, uint16_t startval, uint16_t stopval, uint8_t factor);
|
||||||
|
|
||||||
|
void timerCallback(void *pArg)
|
||||||
|
{
|
||||||
|
*((int *) pArg) += 1;
|
||||||
|
|
||||||
|
ledsequence(direction, onoff, 4);
|
||||||
|
// Serial.print("[");
|
||||||
|
// Serial.print(micros()-m);
|
||||||
|
// Serial.print("] timerCallback\n");
|
||||||
|
// m = micros();
|
||||||
|
}
|
||||||
|
|
||||||
// OTA & WEB
|
// OTA & WEB
|
||||||
#include "wifi_credentials.h"
|
#include "wifi_credentials.h"
|
||||||
#include <ESP8266WiFi.h>
|
#include <ESP8266WiFi.h>
|
||||||
#include <WiFiUdp.h>
|
#include <WiFiUdp.h>
|
||||||
#include <ArduinoOTA.h>
|
#include <ArduinoOTA.h>
|
||||||
|
|
||||||
#include "httpserver.h"
|
#include <ESP8266WebServer.h>
|
||||||
|
#include <WiFiClient.h>
|
||||||
|
|
||||||
|
#include "index.html.gz.h"
|
||||||
|
#include "style.css.gz.h"
|
||||||
|
#include "favicon.png.gz.h"
|
||||||
|
// images are possible
|
||||||
|
// maybe check out FS <- SPIFFS
|
||||||
|
|
||||||
const char* ssid = STASSID;
|
const char* ssid = STASSID;
|
||||||
const char* password = STAPSK;
|
const char* password = STAPSK;
|
||||||
|
|
||||||
os_timer_t timer1;
|
void setup_webserver();
|
||||||
int timer_arg;
|
|
||||||
|
|
||||||
void setup_ota();
|
void setup_ota();
|
||||||
void setup_pwm_pca9685();
|
void setup_pwm_pca9685();
|
||||||
|
void handleRootGz();
|
||||||
|
void handleCssGz();
|
||||||
void handleNotFound();
|
void handleNotFound();
|
||||||
|
|
||||||
const int led = 13;
|
const int led = 13;
|
||||||
|
ESP8266WebServer server(80);
|
||||||
HTTPServer httpServer(80, "/");
|
|
||||||
|
|
||||||
void handleNotFound() {
|
|
||||||
String message = "File Not Found\n\n";
|
|
||||||
message += "URI: ";
|
|
||||||
message += httpServer.uri();
|
|
||||||
message += "\nMethod: ";
|
|
||||||
message += (httpServer.method() == HTTP_GET) ? "GET" : "POST";
|
|
||||||
message += "\nArguments: ";
|
|
||||||
message += httpServer.args();
|
|
||||||
message += "\n";
|
|
||||||
|
|
||||||
for (uint8_t i = 0; i < httpServer.args(); i++) {
|
|
||||||
message += " " + httpServer.argName(i) + ": " + httpServer.arg(i) + "\n";
|
|
||||||
}
|
|
||||||
|
|
||||||
httpServer.send(404, "text/plain", message);
|
|
||||||
}
|
|
||||||
|
|
||||||
PCA9685 pwmController;
|
PCA9685 pwmController;
|
||||||
|
|
||||||
|
void handleRootGz() {
|
||||||
|
const char* dataType = "text/html";
|
||||||
|
server.sendHeader(F("Content-Encoding"), F("gzip"));
|
||||||
|
server.send(200, dataType, (const char*)index_html_gz, index_html_gz_len);
|
||||||
|
}
|
||||||
|
|
||||||
|
void handleCssGz() {
|
||||||
|
const char* dataType = "text/css";
|
||||||
|
server.sendHeader(F("Content-Encoding"), F("gzip"));
|
||||||
|
server.send(200, dataType, (const char*)style_css_gz, style_css_gz_len);
|
||||||
|
}
|
||||||
|
void handleFaviconGz() {
|
||||||
|
const char* dataType = "image/png";
|
||||||
|
server.sendHeader(F("Content-Encoding"), F("gzip"));
|
||||||
|
server.send(200, dataType, (const char*)favicon_png_gz, favicon_png_gz_len);
|
||||||
|
}
|
||||||
|
|
||||||
|
void handleNotFound() {
|
||||||
|
digitalWrite(led, 1);
|
||||||
|
String message = "File Not Found\n\n";
|
||||||
|
message += "URI: ";
|
||||||
|
message += server.uri();
|
||||||
|
message += "\nMethod: ";
|
||||||
|
message += (server.method() == HTTP_GET) ? "GET" : "POST";
|
||||||
|
message += "\nArguments: ";
|
||||||
|
message += server.args();
|
||||||
|
message += "\n";
|
||||||
|
|
||||||
|
for (uint8_t i = 0; i < server.args(); i++) {
|
||||||
|
message += " " + server.argName(i) + ": " + server.arg(i) + "\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
server.send(404, "text/plain", message);
|
||||||
|
digitalWrite(led, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void setup_webserver() {
|
||||||
|
pinMode(led, OUTPUT);
|
||||||
|
digitalWrite(led, 0);
|
||||||
|
Serial.println("");
|
||||||
|
|
||||||
|
// Wait for connection
|
||||||
|
while (WiFi.status() != WL_CONNECTED) {
|
||||||
|
delay(500);
|
||||||
|
Serial.print(".");
|
||||||
|
}
|
||||||
|
|
||||||
|
Serial.println("");
|
||||||
|
Serial.print("Connected to ");
|
||||||
|
Serial.println(ssid);
|
||||||
|
Serial.print("IP address: ");
|
||||||
|
Serial.println(WiFi.localIP());
|
||||||
|
|
||||||
|
server.on("/", handleRootGz);
|
||||||
|
server.on("/style.css", handleCssGz);
|
||||||
|
server.on("/favicon.png", handleFaviconGz);
|
||||||
|
server.onNotFound(handleNotFound);
|
||||||
|
|
||||||
|
server.begin();
|
||||||
|
Serial.println("HTTP server started");
|
||||||
|
}
|
||||||
|
|
||||||
void setup_ota() {
|
void setup_ota() {
|
||||||
ArduinoOTA.setPort(8266);
|
ArduinoOTA.setPort(8266);
|
||||||
@ -108,23 +182,6 @@ void setup_pwm_pca9685() {
|
|||||||
Serial.println(pwmController.getChannelPWM(0)); // Should output 2048, which is 128 << 4
|
Serial.println(pwmController.getChannelPWM(0)); // Should output 2048, which is 128 << 4
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
uint32_t dimmtimer = 0;
|
|
||||||
uint8_t direction = 1;
|
|
||||||
uint8_t onoff = 1;
|
|
||||||
|
|
||||||
void ledsequence(uint8_t direction, uint8_t onoff, uint8_t factor);
|
|
||||||
uint8_t softstart_led(uint8_t led, uint16_t startval, uint16_t stopval, uint8_t factor);
|
|
||||||
|
|
||||||
uint8_t flag = 0;
|
|
||||||
void timer_callback(void *pArg)
|
|
||||||
{
|
|
||||||
*((int *) pArg) += 1;
|
|
||||||
|
|
||||||
flag = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
#ifdef WITH_DEBUGGING_ON
|
#ifdef WITH_DEBUGGING_ON
|
||||||
Serial.begin(460800);
|
Serial.begin(460800);
|
||||||
@ -135,7 +192,6 @@ void setup() {
|
|||||||
|
|
||||||
Serial.println(F("Booting ...."));
|
Serial.println(F("Booting ...."));
|
||||||
|
|
||||||
|
|
||||||
pinMode(NODEMCU_LED, OUTPUT);
|
pinMode(NODEMCU_LED, OUTPUT);
|
||||||
pinMode(ESP12_LED, OUTPUT);
|
pinMode(ESP12_LED, OUTPUT);
|
||||||
|
|
||||||
@ -151,31 +207,23 @@ void setup() {
|
|||||||
ESP.restart();
|
ESP.restart();
|
||||||
}
|
}
|
||||||
|
|
||||||
pinMode(led, OUTPUT);
|
os_timer_setfn(&Timer1, timerCallback, &c);
|
||||||
digitalWrite(led, 0);
|
os_timer_arm(&Timer1, 1, true);
|
||||||
Serial.println("");
|
|
||||||
Serial.print("Connected to ");
|
|
||||||
Serial.println(ssid);
|
|
||||||
Serial.print("IP address: ");
|
|
||||||
Serial.println(WiFi.localIP());
|
|
||||||
|
|
||||||
os_timer_setfn(&timer1, timer_callback, &timer_arg);
|
|
||||||
os_timer_arm(&timer1, 1, true);
|
|
||||||
|
|
||||||
Serial.println("Ready");
|
Serial.println("Ready");
|
||||||
Serial.print("IP address: ");
|
Serial.print("IP address: ");
|
||||||
Serial.println(WiFi.localIP());
|
Serial.println(WiFi.localIP());
|
||||||
|
|
||||||
setup_ota();
|
setup_ota();
|
||||||
|
setup_webserver();
|
||||||
httpServer.start();
|
|
||||||
httpServer.onNotFound(handleNotFound);
|
|
||||||
Serial.println("HTTP server started !");
|
|
||||||
|
|
||||||
setup_pwm_pca9685();
|
setup_pwm_pca9685();
|
||||||
Serial.println("PCA9685 connected !");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint32_t t;
|
||||||
|
#define SP_US(_str,_a) Serial.print(_str); Serial.print(" took: "); Serial.print(_a); Serial.println("µs")
|
||||||
|
#define TIMEIF_US(_str,_f, _l) t=micros(); _f; t=micros()-t; if(t > _l) { SP_US(_str, t); }
|
||||||
|
|
||||||
uint8_t softstart_led(uint8_t led, uint16_t startval, uint16_t stopval, uint8_t factor){
|
uint8_t softstart_led(uint8_t led, uint16_t startval, uint16_t stopval, uint8_t factor){
|
||||||
static uint8_t lastled = 255;
|
static uint8_t lastled = 255;
|
||||||
static uint8_t current_pwm = 0;
|
static uint8_t current_pwm = 0;
|
||||||
@ -258,11 +306,11 @@ void ledsequence(uint8_t direction, uint8_t onoff, uint8_t factor){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t _t=0;
|
|
||||||
#define SP_US(_str,_a) Serial.print(_str); Serial.print(" took: "); Serial.print(_a); Serial.println("us")
|
|
||||||
#define TIMEIF_US(_f, _l, _str) _t=micros(); _f; _t=micros()-_t; if(_t > _l) { SP_US(_str, _t); }
|
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(millis() - dimmtimer > 2){
|
if(millis() - dimmtimer > 2){
|
||||||
//ledsequence(direction, onoff, 4);
|
//ledsequence(direction, onoff, 4);
|
||||||
dimmtimer = millis();
|
dimmtimer = millis();
|
||||||
@ -272,12 +320,6 @@ void loop() {
|
|||||||
onoff = 1;
|
onoff = 1;
|
||||||
direction = 0;
|
direction = 0;
|
||||||
}
|
}
|
||||||
TIMEIF_US(ArduinoOTA.handle(), 1000, "OTA");
|
TIMEIF_US("OTA", ArduinoOTA.handle(), 1000);
|
||||||
TIMEIF_US(httpServer.handleClient(), 1000, "HTTP");
|
TIMEIF_US("HTTP", server.handleClient(), 1000);
|
||||||
|
|
||||||
if(flag) {
|
|
||||||
flag = 0;
|
|
||||||
ledsequence(direction, onoff, 4);
|
|
||||||
//Serial.printf("[%lu] interrupt\n\r", millis());
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -12,29 +12,23 @@
|
|||||||
platform = espressif8266
|
platform = espressif8266
|
||||||
board = nodemcuv2
|
board = nodemcuv2
|
||||||
framework = arduino
|
framework = arduino
|
||||||
|
|
||||||
; for http files
|
|
||||||
board_build.filesystem = littlefs
|
|
||||||
board_build.ldscript = eagle.flash.4m1m.ld
|
|
||||||
extra_scripts = pre:create_gz_files.py
|
|
||||||
|
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
|
extra_scripts = pre:extra_script.py
|
||||||
|
|
||||||
[env:serial]
|
[env:serial]
|
||||||
upload_protocol = esptool
|
upload_protocol = esptool
|
||||||
upload_speed = 921600
|
upload_speed = 921600
|
||||||
|
|
||||||
[env:ota]
|
[env:ota]
|
||||||
; OTA => https://docs.platformio.org/en/latest/platforms/espressif8266.html#over-the-air-ota-update
|
; stuff for OTA
|
||||||
|
; https://docs.platformio.org/en/latest/platforms/espressif8266.html#over-the-air-ota-update
|
||||||
upload_protocol = espota
|
upload_protocol = espota
|
||||||
upload_port = <!! IP ADDRESS !!>
|
upload_port = <!! IP ADDRESS !!>
|
||||||
upload_flags =
|
upload_flags =
|
||||||
--port=8266
|
--port=8266
|
||||||
--host_port=<!! PORT !!>
|
|
||||||
--auth=admin
|
--auth=admin
|
||||||
|
|
||||||
[env:debug]
|
[env:debug]
|
||||||
; look at doku.md
|
|
||||||
build_flags = -DWITH_DEBUGGING_ON -Os -g3 -ggdb3
|
build_flags = -DWITH_DEBUGGING_ON -Os -g3 -ggdb3
|
||||||
upload_protocol = esptool
|
upload_protocol = esptool
|
||||||
upload_speed = 921600
|
upload_speed = 921600
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
CD .\data
|
CD .\include\http
|
||||||
py.exe -m http.server
|
py.exe -m http.server
|
@ -1,2 +1,2 @@
|
|||||||
cd data
|
cd include/http
|
||||||
python3 -m http.server
|
python3 -m http.server
|
Loading…
x
Reference in New Issue
Block a user