abouttreesummaryrefslogcommitdiff
path: root/esp32/esp_project/main/main.c
diff options
context:
space:
mode:
authorPatrick2023-07-14 13:46:27 +0200
committerPatrick2023-07-14 13:46:27 +0200
commit4c72c6901e007414aebb4cb6534c1a49d63558b0 (patch)
treec0530fbda67888a8857e5a08222ee6d19c41f260 /esp32/esp_project/main/main.c
parent10325eaf40c80eb91f1c1eceea880c3abd54efd7 (diff)
downloadmatrix_esp_thesis-4c72c6901e007414aebb4cb6534c1a49d63558b0.tar.gz
matrix_esp_thesis-4c72c6901e007414aebb4cb6534c1a49d63558b0.zip
esp32 build, cli
Diffstat (limited to 'esp32/esp_project/main/main.c')
-rw-r--r--esp32/esp_project/main/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/esp32/esp_project/main/main.c b/esp32/esp_project/main/main.c
index d53fdf7..f4d3c8c 100644
--- a/esp32/esp_project/main/main.c
+++ b/esp32/esp_project/main/main.c
@@ -14,6 +14,8 @@
#include <olm/olm.h>
#include <matrix.h>
+#include <esp_wifi.h>
+
#define SERVER "https://matrix.org"
#define ACCESS_TOKEN "syt_cHNjaG8_yBvTjVTquGCikvsAenOJ_49mBMO"
#define DEVICE_ID "MAZNCCZLBR"
@@ -26,6 +28,9 @@ app_main(void)
MatrixClientInit(&client,
SERVER);
+ void wifi_init(const char *ssid, const char *pass);
+ wifi_init("Hundehuette", "Affensicherespw55");
+
MatrixHttpInit(&client);
MatrixClientSetAccessToken(&client,