Upgrade to latest mbed-drivers version
diff --git a/yotta/data/example-tls-client/main.cpp b/yotta/data/example-tls-client/main.cpp
index 540d2ea..8a74b9b 100644
--- a/yotta/data/example-tls-client/main.cpp
+++ b/yotta/data/example-tls-client/main.cpp
@@ -48,7 +48,7 @@
#define UNSAFE 0
#include "mbed.h"
-#include "mbed-net-lwip-eth/EthernetInterface.h"
+#include "sal-iface-eth/EthernetInterface.h"
#include "mbed-net-sockets/TCPStream.h"
#include "minar/minar.h"
@@ -495,8 +495,9 @@
}
#include "mbed/test_env.h"
+#include "minar/minar.h"
-int main() {
+static void run() {
/* The default 9600 bps is too slow to print full TLS debug info and could
* cause the other party to time out. Select a higher baud rate for
* printf(), regardless of debug level for the sake of uniformity. */
@@ -510,4 +511,8 @@
MBED_HOSTTEST_RESULT(example_client() == 0);
}
+void app_start(int, char*[]) {
+ minar::Scheduler::postCallback(FunctionPointer0<void>(run).bind());
+}
+
#endif /* TARGET_LIKE_MBED */