Test serial console demonstrating various API functions of WiConnect library.

Dependencies:   WiConnect mbed

Committer:
dan_ackme
Date:
Mon Aug 11 11:31:32 2014 +0000
Revision:
0:836c9a6383e0
Child:
1:5137ec8f4c45
Initial check-in

Who changed what in which revision?

UserRevisionLine numberNew contents of line
dan_ackme 0:836c9a6383e0 1 /*
dan_ackme 0:836c9a6383e0 2 * Copyright 2014, ACKme Networks
dan_ackme 0:836c9a6383e0 3 * All Rights Reserved.
dan_ackme 0:836c9a6383e0 4 *
dan_ackme 0:836c9a6383e0 5 * This is UNPUBLISHED PROPRIETARY SOURCE CODE of ACKme Networks;
dan_ackme 0:836c9a6383e0 6 * the contents of this file may not be disclosed to third parties, copied
dan_ackme 0:836c9a6383e0 7 * or duplicated in any form, in whole or in part, without the prior
dan_ackme 0:836c9a6383e0 8 * written permission of ACKme Networks.
dan_ackme 0:836c9a6383e0 9 */
dan_ackme 0:836c9a6383e0 10
dan_ackme 0:836c9a6383e0 11 #pragma once
dan_ackme 0:836c9a6383e0 12
dan_ackme 0:836c9a6383e0 13 #include "Wiconnect.h"
dan_ackme 0:836c9a6383e0 14
dan_ackme 0:836c9a6383e0 15 #define LOG_DEBUG(msg, ...) logDebug(msg "\r\n", ## __VA_ARGS__)
dan_ackme 0:836c9a6383e0 16 #define LOG_INFO(msg, ...) logInfo(msg "\r\n", ## __VA_ARGS__)
dan_ackme 0:836c9a6383e0 17 #define LOG_INFO_WRITE_STR(msg, s) logInfoWriteStr(msg, s)
dan_ackme 0:836c9a6383e0 18 #define LOG_ERROR(msg, ...) logError(msg "\r\n", ## __VA_ARGS__)
dan_ackme 0:836c9a6383e0 19 #define LOG_WICONNECT_ERROR(result, msg, ...) logWiconnectError(result, msg, ## __VA_ARGS__)
dan_ackme 0:836c9a6383e0 20
dan_ackme 0:836c9a6383e0 21
dan_ackme 0:836c9a6383e0 22 void logDebug(const char *msg, ...);
dan_ackme 0:836c9a6383e0 23 void logInfo(const char *msg, ...);
dan_ackme 0:836c9a6383e0 24 void logInfoWriteStr(const char *msg, const char *s);
dan_ackme 0:836c9a6383e0 25 void logError(const char *msg, ...);
dan_ackme 0:836c9a6383e0 26 void logWiconnectError(wiconnect::WiconnectResult result, const char *msg, ...);
dan_ackme 0:836c9a6383e0 27 void logWrite(const void *data, int size);
dan_ackme 0:836c9a6383e0 28