summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/Messenger_test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/testing/Messenger_test.c b/testing/Messenger_test.c
index 484098b9..f9215b44 100644
--- a/testing/Messenger_test.c
+++ b/testing/Messenger_test.c
@@ -117,6 +117,8 @@ int main(int argc, char *argv[])
117 printf("%hhX",self_public_key[i]); 117 printf("%hhX",self_public_key[i]);
118 } 118 }
119 119
120 setname((uint8_t *)"Anon", 5);
121
120 char temp_id[128]; 122 char temp_id[128];
121 printf("\nEnter the client_id of the friend you wish to add (32 bytes HEX format):\n"); 123 printf("\nEnter the client_id of the friend you wish to add (32 bytes HEX format):\n");
122 if(scanf("%s", temp_id) != 1) 124 if(scanf("%s", temp_id) != 1)
@@ -129,6 +131,10 @@ int main(int argc, char *argv[])
129 131
130 while(1) 132 while(1)
131 { 133 {
134 uint8_t name[128];
135 getname(num, name);
136 printf("%s\n", name);
137
132 m_sendmessage(num, (uint8_t*)"Test", 5); 138 m_sendmessage(num, (uint8_t*)"Test", 5);
133 doMessenger(); 139 doMessenger();
134 c_sleep(30); 140 c_sleep(30);