Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 2 insertions, 2 deletions
-rw-r--r--Year 3/Internet of things/goam/main/webserver.c4
diff --git a/Year 3/Internet of things/goam/main/webserver.c b/Year 3/Internet of things/goam/main/webserver.c
index 7d4f4e0..c3e78bb 100644
--- a/Year 3/Internet of things/goam/main/webserver.c
+++ b/Year 3/Internet of things/goam/main/webserver.c
@@ -38,12 +38,12 @@ static void logi_get(httpd_req_t *req) {
}
// Index page is embedded in binary
-static char* index_page = NULL;
+static const unsigned char* index_page = NULL;
static size_t index_page_len = 0;
static esp_err_t get_handler(httpd_req_t *req)
{
- httpd_resp_send(req, index_page, index_page_len);
+ httpd_resp_send(req, (const char*)index_page, index_page_len);
logi_get(req);
return ESP_OK;