]> gitweb.ps.run Git - matrix_esp_thesis/blobdiff - esp32/esp_project/main/main.c
esp32 build, cli
[matrix_esp_thesis] / esp32 / esp_project / main / main.c
index d53fdf78332261d0767bc592d7cefe71c41ae431..f4d3c8c81d373bf39aaf51f393dc7d2ce32f7fa0 100644 (file)
@@ -14,6 +14,8 @@
 #include <olm/olm.h>\r
 #include <matrix.h>\r
 \r
+#include <esp_wifi.h>\r
+\r
 #define SERVER       "https://matrix.org"\r
 #define ACCESS_TOKEN "syt_cHNjaG8_yBvTjVTquGCikvsAenOJ_49mBMO"\r
 #define DEVICE_ID    "MAZNCCZLBR"\r
@@ -26,6 +28,9 @@ app_main(void)
     MatrixClientInit(&client,\r
         SERVER);\r
     \r
+    void wifi_init(const char *ssid, const char *pass);\r
+    wifi_init("Hundehuette", "Affensicherespw55");\r
+\r
     MatrixHttpInit(&client);\r
 \r
     MatrixClientSetAccessToken(&client,\r