10000 esp32-snippets/mongoose/webserver at master · Secretmapper/esp32-snippets · GitHub
[go: up one dir, main page]

Skip to content
{"payload":{"allShortcutsEnabled":false,"path":"mongoose/webserver","repo":{"id":184555870,"defaultBranch":"master","name":"esp32-snippets","ownerLogin":"Secretmapper","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2019-05-02T09:41:08.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/4077143?v=4","public":true,"private":false,"isOrgOwned":false},"currentUser":null,"refInfo":{"name":"master","listCacheKey":"v0:1614895100.782795","canEdit":false,"refType":"branch","currentOid":"91e1571dd5bd433e107f92e1588780ee22fed42e"},"tree":{"items":[{"name":"components","path":"mongoose/webserver/components","contentType":"directory"},{"name":"main","path":"mongoose/webserver/main","contentType":"directory"},{"name":".gitignore","path":"mongoose/webserver/.gitignore","contentType":"file"},{"name":"LICENSE","path":"mongoose/webserver/LICENSE","contentType":"file"},{"name":"Makefile","path":"mongoose/webserver/Makefile","contentType":"file"},{"name":"README.md","path":"mongoose/webserver/README.md","contentType":"file"},{"name":"sdkconfig","path":"mongoose/webserver/sdkconfig","contentType":"file"}],"templateDirectorySuggestionUrl":null,"readme":{"displayName":"README.md","richText":"\u003carticle class=\"markdown-body entry-content container-lg\" itemprop=\"text\"\u003e\u003cdiv class=\"markdown-heading\" dir=\"auto\"\u003e\u003ch1 tabindex=\"-1\" class=\"heading-element\" dir=\"auto\"\u003emongoose/webserver\u003c/h1\u003e\u003ca id=\"user-content-mongoosewebserver\" class=\"anchor\" aria-label=\"Permalink: mongoose/webserver\" href=\"#mongoosewebserver\"\u003e\u003csvg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"\u003e\u003cpath d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"\u003e\u003c/path\u003e\u003c/svg\u003e\u003c/a\u003e\u003c/div\u003e\n\u003cp dir=\"auto\"\u003eThis snippet provides a simple Webserver using the Mongoose library on the ESP32.\nIt provides two URL endpoints:\u003c/p\u003e\n\u003cul dir=\"auto\"\u003e\n\u003cli\u003e\u003ccode\u003e/time\u003c/code\u003e - Returns a JSON encoded time since startup.\u003c/li\u003e\n\u003cli\u003e\u003ccode\u003e/test1.html\u003c/code\u003e - Returns a simple HTML web page.\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp dir=\"auto\"\u003eThe web page has been hard-coded into the application. We used the \u003ccode\u003exxd\u003c/code\u003e tool on Linux\nwhich takes as input a binary file (eg. an HTML source file) and generates a header file\nthat exposes the data. For example:\u003c/p\u003e\n\u003cdiv class=\"snippet-clipboard-content notranslate position-relative overflow-auto\" data-snippet-clipboard-copy-content=\"$ xxd -i test1.html test1_html.h\"\u003e\u003cpre class=\"notranslate\"\u003e\u003ccode\u003e$ xxd -i test1.html test1_html.h\n\u003c/code\u003e\u003c/pre\u003e\u003c/div\u003e\n\u003c/article\u003e","errorMessage":null,"headerInfo":{"toc":[{"level":1,"text":"mongoose/webserver","anchor":"mongoosewebserver","htmlText":"mongoose/webserver"}],"siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2FSecretmapper%2Fesp32-snippets%2Ftree%2Fmaster%2Fmongoose%2Fwebserver"}},"totalCount":7,"showBranchInfobar":true},"fileTree":{"mongoose":{"items":[{"name":"webserver","path":"mongoose/webserver","contentType":"directory"}],"totalCount":1},"":{"items":[{"name":"BLE","path":"BLE","contentType":"directory"},{"name":"Documentation","path":"Documentation","contentType":"directory"},{"name":"VisualStudioCode","path":"VisualStudioCode","contentType":"directory"},{"name":"arduino","path":"arduino","contentType":"directory"},{"name":"c-utils","path":"c-utils","contentType":"directory"},{"name":"cloud","path":"cloud","contentType":"directory"},{"name":"console","path":"console","contentType":"directory"},{"name":"cpp_utils","path":"cpp_utils","contentType":"directory"},{"name":"curl","path":"curl","contentType":"directory"},{"name":"eclipse","path":"eclipse","contentType":"directory"},{"name":"error handling","path":"error handling","contentType":"directory"},{"name":"filesystems","path":"filesystems","contentType":"directory"},{"name":"gpio","path":"gpio","contentType":"directory"},{"name":"hardware","path":"hardware","contentType":"directory"},{"name":"i2c","path":"i2c","contentType":"directory"},{"name":"memory","path":"memory","contentType":"directory"},{"name":"mongoose","path":"mongoose","contentType":"directory"},{"name":"networking","path":"networking","contentType":"directory"},{"name":"nvs","path":"nvs","contentType":"directory"},{"name":"partitions","path":"partitions","contentType":"directory"},{"name":"posix","path":"posix","contentType":"directory"},{"name":"pwm","path":"pwm","contentType":"directory"},{"name":"rmt","path":"rmt","contentType":"directory"},{"name":"skeletons","path":"skeletons","contentType":"directory"},{"name":"sntp","path":"sntp","contentType":"directory"},{"name":"sockets","path":"sockets","contentType":"directory"},{"name":"spi","path":"spi","contentType":"directory"},{"name":"tasks","path":"tasks","contentType":"directory"},{"name":"tools","path":"tools","contentType":"directory"},{"name":"uart","path":"uart","contentType":"directory"},{"name":"vfs","path":"vfs","contentType":"directory"},{"name":"wifi","path":"wifi","contentType":"directory"},{"name":".DS_Store","path":".DS_Store","contentType":"file"},{"name":".cproject","path":".cproject","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".project","path":".project","contentType":"file"},{"name":"Kconfig","path":"Kconfig","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"component.mk","path":"component.mk","contentType":"file"}],"totalCount":40}},"fileTreeProcessingTime":3.86347,"foldersToFetch":[],"treeExpanded":true,"symbolsExpanded":false,"csrf_tokens":{"/Secretmapper/esp32-snippets/branches":{"post":"Q-5uG8V_xr92PCGpYF3ztogDAQtiRkEP3T88LWk96q38NQqVGtWKYjPPo2z3q3WXBg5K6EI-X4drkMmtL_sjtQ"},"/Secretmapper/esp32-snippets/branches/fetch_and_merge/master":{"post":"ikZks2C7jWd_4HZMKAA-3Vh8YR3l1KzSMADVg6yZrRMPHQcZY1vhFBmOJi12mmIt9-HLe6b3N2I8CFAiI17JPA"},"/Secretmapper/esp32-snippets/branches/fetch_and_merge/master?discard_changes=true":{"post":"HoabnqLGd__bxlBQKcM_eknfbZMj40mm3KVze0urZ3yb3fg0oSYbjL2oADF3WWOK5kLH9WDA0hbQrfbaxGwDUw"}}},"title":"esp32-snippets/mongoose/webserver at master · Secretmapper/esp32-snippets","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1b17b3e7786a.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}
0