Convert ping/pong examples to new flatbuffer API
This serves as a demonstration of how to use the new API.
Change-Id: Icfd5c0f77eae456001416a6deb02cb2946d40070
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/events/ping_lib.h b/aos/events/ping_lib.h
index fec6c45..aa40d6b 100644
--- a/aos/events/ping_lib.h
+++ b/aos/events/ping_lib.h
@@ -5,8 +5,8 @@
#include <string_view>
#include "aos/events/event_loop.h"
-#include "aos/events/ping_generated.h"
-#include "aos/events/pong_generated.h"
+#include "aos/events/ping_static.h"
+#include "aos/events/pong_static.h"
namespace aos {
@@ -25,7 +25,7 @@
void HandlePong(const examples::Pong &pong);
aos::EventLoop *event_loop_;
- aos::Sender<examples::Ping> sender_;
+ aos::Sender<examples::PingStatic> sender_;
// Timer handle which sends the Ping message.
aos::TimerHandler *timer_handle_;
// Number of pings sent.