Commit 9a5aeb12 authored by Lucas Russo's avatar Lucas Russo

examples: update examples to latest libclient API

Now, we have the option to output our debug messages
to any FILE stream. We default it to stdout.
parent 81ca1608
...@@ -121,7 +121,7 @@ int main (int argc, char *argv []) ...@@ -121,7 +121,7 @@ int main (int argc, char *argv [])
broker_endp = strdup ("ipc://"DFLT_BIND_FOLDER); broker_endp = strdup ("ipc://"DFLT_BIND_FOLDER);
} }
bpm_client_t *bpm_client = bpm_client_new (broker_endp, verbose); bpm_client_t *bpm_client = bpm_client_new (broker_endp, verbose, NULL);
/* Set default number samples */ /* Set default number samples */
uint32_t num_samples; uint32_t num_samples;
......
...@@ -60,7 +60,7 @@ int main (int argc, char *argv []) ...@@ -60,7 +60,7 @@ int main (int argc, char *argv [])
broker_endp = strdup ("ipc://"DFLT_BIND_FOLDER); broker_endp = strdup ("ipc://"DFLT_BIND_FOLDER);
} }
bpm_client_t *bpm_client = bpm_client_new (broker_endp, verbose); bpm_client_t *bpm_client = bpm_client_new (broker_endp, verbose, NULL);
uint32_t kx_set = 10000000; uint32_t kx_set = 10000000;
fprintf (stdout, "[client:dsp]: kx = %u\n", kx_set); fprintf (stdout, "[client:dsp]: kx = %u\n", kx_set);
......
...@@ -58,7 +58,7 @@ int main (int argc, char *argv []) ...@@ -58,7 +58,7 @@ int main (int argc, char *argv [])
broker_endp = strdup ("ipc://"DFLT_BIND_FOLDER); broker_endp = strdup ("ipc://"DFLT_BIND_FOLDER);
} }
bpm_client_t *bpm_client = bpm_client_new (broker_endp, verbose); bpm_client_t *bpm_client = bpm_client_new (broker_endp, verbose, NULL);
for (i = 0; i < 32768; ++i) { for (i = 0; i < 32768; ++i) {
uint32_t leds = (1 << 1); uint32_t leds = (1 << 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment