diff options
author | Uros Majstorovic <majstor@majstor.org> | 2018-01-17 07:45:32 +0100 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2018-01-17 07:45:32 +0100 |
commit | 97a7e6617f8ad06b7bff495603200b853766ecc8 (patch) | |
tree | 9e8a4aaa5b3ef366c595595871db43eae2facdc2 /code/test | |
parent | 01c3e3af2394f863323b846fa304ff7e0a30e9df (diff) |
basic test for eos & fe310 passed
Diffstat (limited to 'code/test')
-rw-r--r-- | code/test/client.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/code/test/client.c b/code/test/client.c index 03b459f..3ec6eb7 100644 --- a/code/test/client.c +++ b/code/test/client.c @@ -36,6 +36,12 @@ ssize_t handle_open_c(ECPConnection *conn, ecp_seq_t sq, unsigned char t, unsign ssize_t handle_msg_c(ECPConnection *conn, ecp_seq_t sq, unsigned char t, unsigned char *p, ssize_t s, ECP2Buffer *b) { printf("MSG C:%s size:%ld\n", p, s); + char *msg = "PERA JE CAR!"; + unsigned char buf[1000]; + + strcpy((char *)buf, msg); + ssize_t _rv = ecp_send(conn, MTYPE_MSG, buf, 1000); + return s; } |