updated the readme

master
Ondřej Hruška 7 years ago
parent ca8535e664
commit 3b6017de33
Signed by: MightyPork
GPG Key ID: 2C5FD5035250423D
  1. 5
      README.md
  2. 10
      main.c

@ -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.

@ -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,

Loading…
Cancel
Save