diff --git a/examples/capi/oddity/aether_ground_control.c b/examples/capi/oddity/aether_ground_control.c index 96563839f..c1454631a 100644 --- a/examples/capi/oddity/aether_ground_control.c +++ b/examples/capi/oddity/aether_ground_control.c @@ -81,11 +81,14 @@ void ClientSelected(AetherClient* client, void* user_data) { printf("<<<\n"); } -void MessageSentCb(ActionStatus status, void* user_data) { AetherExit(0); } +void MessageSentCb(ActionStatus status, void* user_data) { + // close app + AetherExit(0); +} void MessageReceived(AetherClient* client, CUid sender, void const* data, size_t size, void* user_data) { - printf(">>> Received message size: %zu test: %s\n", size, (char const*)data); + printf(">>> Received message size: %zu text: %s\n", size, (char const*)data); // send message and wait till it sent SendStr(sender, message, MessageSentCb, NULL); } diff --git a/examples/capi/oddity/aether_tom.c b/examples/capi/oddity/aether_tom.c index eebba9a49..afdadc34f 100644 --- a/examples/capi/oddity/aether_tom.c +++ b/examples/capi/oddity/aether_tom.c @@ -63,7 +63,7 @@ char const* message = "Major Tom to ground control"; void MessageReceived(AetherClient* client, CUid sender, void const* data, size_t size, void* user_data) { - printf(">>> Received message size: %zu test: %s\n", size, (char const*)data); + printf(">>> Received message size: %zu text: %s\n", size, (char const*)data); AetherExit(0); }