]> gitweb.ps.run Git - matrix_esp_thesis/commitdiff
update code block to include 'c' specifier
authorpatrick-scho <patrick.schoenberger@posteo.de>
Mon, 28 Apr 2025 09:31:40 +0000 (11:31 +0200)
committerpatrick-scho <patrick.schoenberger@posteo.de>
Mon, 28 Apr 2025 09:31:40 +0000 (11:31 +0200)
Readme.md

index 9e90f9a272711d93dab35fa880384468db1b15cd..81b3c2f8d1632de2e0b17ffce1419b35c23a1e75 100644 (file)
--- a/Readme.md
+++ b/Readme.md
@@ -32,7 +32,7 @@ There are currently two, SendEncrypted and Verify.
 The example can be set in `esp32/esp_project(_risc_v)/main/CMakeLists.txt` as the second argument after SRCS.\r
 \r
 Any code using the library should compile under ESP-IDF if the following code is added at the end of the file:\r
-```\r
+```c\r
 #include "wifi.h"\r
 \r
 void\r
@@ -61,7 +61,7 @@ To use the library in an ESP-IDF project:
 ## Examples\r
 \r
 ### (De)Initialization\r
-```\r
+```c\r
 MatrixClient * client = (MatrixClient*)malloc(sizeof(MatrixClient));\r
 MatrixClientInit(client);\r
 \r
@@ -79,14 +79,14 @@ MatrixHttpDeinit(&client->hc);
 ```\r
 \r
 ### Uploading keys\r
-```\r
+```c\r
 MatrixClientGenerateOnetimeKeys(client, 10);\r
 MatrixClientUploadOnetimeKeys(client);\r
 MatrixClientUploadDeviceKeys(client);\r
 ```\r
 \r
 ### Sending an encrypted message\r
-```\r
+```c\r
 MatrixMegolmOutSession * megolmOutSession;\r
 MatrixClientNewMegolmOutSession(&client,\r
     ROOM_ID,\r
@@ -104,7 +104,7 @@ MatrixClientSendEventEncrypted(&client,
 ```\r
 \r
 ### Verification\r
-```\r
+```c\r
 // Request an encrypted event to enable verification\r
 STATIC char eventBuffer[1024];\r
 MatrixClientGetRoomEvent(client,\r
@@ -119,4 +119,4 @@ STATIC char nextBatch[1024];
 while (! client->verified) {\r
     MatrixClientSync(client, syncBuffer, SYNC_BUFFER_SIZE, nextBatch, 1024);\r
 }\r
-```
\ No newline at end of file
+```\r