Test serial console demonstrating various API functions of WiConnect library.

Dependencies:   WiConnect mbed

Revision:
0:836c9a6383e0
Child:
1:5137ec8f4c45
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/util/log/log.h	Mon Aug 11 11:31:32 2014 +0000
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2014, ACKme Networks
+ * All Rights Reserved.
+ *
+ * This is UNPUBLISHED PROPRIETARY SOURCE CODE of ACKme Networks;
+ * the contents of this file may not be disclosed to third parties, copied
+ * or duplicated in any form, in whole or in part, without the prior
+ * written permission of ACKme Networks.
+ */
+
+#pragma once
+
+#include "Wiconnect.h"
+
+#define LOG_DEBUG(msg, ...) logDebug(msg "\r\n", ## __VA_ARGS__)
+#define LOG_INFO(msg, ...) logInfo(msg "\r\n", ## __VA_ARGS__)
+#define LOG_INFO_WRITE_STR(msg, s) logInfoWriteStr(msg, s)
+#define LOG_ERROR(msg, ...) logError(msg "\r\n", ## __VA_ARGS__)
+#define LOG_WICONNECT_ERROR(result, msg, ...) logWiconnectError(result, msg, ## __VA_ARGS__)
+
+
+void logDebug(const char *msg, ...);
+void logInfo(const char *msg, ...);
+void logInfoWriteStr(const char *msg, const char *s);
+void logError(const char *msg, ...);
+void logWiconnectError(wiconnect::WiconnectResult result, const char *msg, ...);
+void logWrite(const void *data, int size);
+