From 4c72c6901e007414aebb4cb6534c1a49d63558b0 Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 14 Jul 2023 13:46:27 +0200 Subject: esp32 build, cli --- src/matrix.h | 1 + src/matrix_http_mongoose.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/matrix.h b/src/matrix.h index 5e5eabd..32b8294 100644 --- a/src/matrix.h +++ b/src/matrix.h @@ -283,6 +283,7 @@ MatrixClientRequestDeviceKeys( + bool MatrixHttpInit( MatrixClient * client); diff --git a/src/matrix_http_mongoose.c b/src/matrix_http_mongoose.c index 0b6c267..a514f72 100644 --- a/src/matrix_http_mongoose.c +++ b/src/matrix_http_mongoose.c @@ -56,7 +56,7 @@ MatrixHttpCallback( conn->dataLen = hm->body.len; conn->dataReceived = true; - printf("received[%d]:\n%.*s\n", conn->dataLen, conn->dataLen, conn->data); + //printf("received[%d]:\n%.*s\n", conn->dataLen, conn->dataLen, conn->data); } if (ev == MG_EV_CLOSE) { @@ -86,7 +86,7 @@ MatrixHttpConnect( MatrixHttpConnection * conn = (MatrixHttpConnection *)client->httpUserData; - struct mg_connection * c = + //struct mg_connection * c = mg_http_connect(&conn->mgr, client->server, MatrixHttpCallback, client); while (! conn->connected) -- cgit v1.2.3