Skip to content

Commit

Permalink
examples/*/monit_amp: use correct producer channel name
Browse files Browse the repository at this point in the history
  • Loading branch information
lerwys committed Jul 2, 2020
1 parent 1b8ccbf commit 7eff972
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/src/monit_amp.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ int main (int argc, char *argv [])
}

char service[50];
snprintf (service, sizeof (service), "HALCS%u:DEVIO:DSP%u", board_number, halcs_number);
snprintf (service, sizeof (service), "HALCS%u:DEVIO:DSP%u:%s", board_number, halcs_number, "DATA_PRODUCER");

halcs_client_t *halcs_client = halcs_client_new (broker_endp, verbose, NULL);
if (halcs_client == NULL) {
fprintf (stderr, "[client:acq]: halcs_client could be created\n");
goto err_halcs_client_new;
}

halcs_client_err_e err = halcs_set_monit_subscription (halcs_client, "MONIT_DATA", "MONIT_AMP");
halcs_client_err_e err = halcs_set_monit_subscription (halcs_client, service, "MONIT_AMP");
if (err != HALCS_CLIENT_SUCCESS) {
fprintf (stderr, "[client:monit_amp]: halcs_set_monit_subscription failed\n");
goto err_set_monit_subscription;
Expand Down

0 comments on commit 7eff972

Please sign in to comment.