abouttreesummaryrefslogcommitdiff
path: root/examples/Send.c
diff options
context:
space:
mode:
authorPatrick2023-11-14 13:12:41 +0100
committerPatrick2023-11-14 13:12:41 +0100
commitbe730e09b6376a40fd3852d5a2c8876b27c2c7bb (patch)
treefd7b8ec2f21c8f9074259df9b0b37fe499fa4171 /examples/Send.c
parent58e0d63958d7406b7bbf3b964d9ea9a2770e0741 (diff)
downloadmatrix_esp_thesis-be730e09b6376a40fd3852d5a2c8876b27c2c7bb.tar.gz
matrix_esp_thesis-be730e09b6376a40fd3852d5a2c8876b27c2c7bb.zip
update examples
Diffstat (limited to 'examples/Send.c')
-rw-r--r--examples/Send.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/examples/Send.c b/examples/Send.c
index 281d899..d5d27b9 100644
--- a/examples/Send.c
+++ b/examples/Send.c
@@ -1,8 +1,11 @@
#include <matrix.h>
-#define SERVER "https://matrix.org"
-#define USER_ID "@pscho:matrix.org"
-#define ROOM_ID "!koVStwyiiKcBVbXZYz:matrix.org"
+#define SERVER "https://matrix.org"
+#define USER_ID "@example:matrix.org"
+#define ROOM_ID "!example:matrix.org"
+#define USERNAME ""
+#define PASSWORD ""
+#define DEVICE_NAME ""
int
main(void)
@@ -16,9 +19,9 @@ main(void)
MatrixClientSetUserId(&client, USER_ID);
MatrixClientLoginPassword(&client,
- "pscho",
- "Wc23EbmB9G3faMq",
- "Test1");
+ USERNAME,
+ PASSWORD,
+ DEVICE_NAME);
MatrixClientSendEvent(&client,