- error handling in SV publisher example

pull/93/head
Michael Zillgith 7 years ago
parent cd50bc63b2
commit afab66cb4d

@ -31,6 +31,8 @@ main(int argc, char** argv)
SVPublisher svPublisher = SVPublisher_create(NULL, interface);
if (svPublisher) {
SVPublisher_ASDU asdu1 = SVPublisher_addASDU(svPublisher, "svpub1", NULL, 1);
int float1 = SVPublisher_ASDU_addFLOAT(asdu1);
@ -74,3 +76,7 @@ main(int argc, char** argv)
SVPublisher_destroy(svPublisher);
}
else {
printf("Failed to create SV publisher\n");
}
}

Loading…
Cancel
Save