From 3b6017de33978974f040d1f74bc82b3aced322d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Wed, 27 Dec 2017 18:07:22 +0100 Subject: [PATCH] updated the readme --- README.md | 5 ++++- main.c | 10 +++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 472735b..b7a248a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ # C client for GEX -TODO +This is a GEX client library. It's primary purpose is to provide access to GEX +from the desktop where high performance is needed. + +For a more friendly way to access GEX, look at the Python client instead. diff --git a/main.c b/main.c index 95767f5..9bbf9d7 100644 --- a/main.c +++ b/main.c @@ -99,7 +99,7 @@ int main(void) fprintf(stderr, "Cmd \"PING\" OK\n"); #endif -#if 1 +#if 0 // Load settings to a buffer as INI uint8_t inifile[10000]; br = (GexBulk){ @@ -119,7 +119,7 @@ int main(void) GEX_BulkWrite(GEX_SysUnit(gex), &br); #endif -#if 1 +#if 0 // Load settings to a buffer as INI char inifile[10000]; uint32_t len = GEX_IniRead(gex, inifile, 10000); @@ -133,7 +133,7 @@ int main(void) assert(suc); #endif -#if 1 +#if 0 // Test a echo command that returns back what was sent to it as useful payload const char *s = "I am \r\nreturning this otherwise good typing paper to you because someone " "has printed gibberish all over it and put your name at the top. Read the communist manifesto via bulk transfer. Read the communist manifesto via bulk transfer. Technology is a constand battle between manufacturers producing bigger and " @@ -143,7 +143,7 @@ int main(void) assert(0==strncmp((char*)msg.payload, s, strlen(s))); #endif -#if 1 +#if 0 // Read the communist manifesto via bulk transfer uint8_t buffr[10000]; br = (GexBulk){ @@ -158,7 +158,7 @@ int main(void) fprintf(stderr, "%.*s", actuallyRead, buffr); #endif -#if 1 +#if 0 // Read the communist manifesto via bulk transfer br = (GexBulk){ .buffer = (uint8_t *) longtext,