Websocket_Sample for MurataTypeYD

Dependencies:   mbed picojson

Committer:
komoritan
Date:
Thu Mar 12 12:14:38 2015 +0000
Revision:
0:14bd24b5a77f
fixed

Who changed what in which revision?

UserRevisionLine numberNew contents of line
komoritan 0:14bd24b5a77f 1 /* Copyright (C) 2014 Murata Manufacturing Co.,Ltd., MIT License
komoritan 0:14bd24b5a77f 2 * muRata, SWITCH SCIENCE Wi-FI module TypeYD SNIC-UART.
komoritan 0:14bd24b5a77f 3 *
komoritan 0:14bd24b5a77f 4 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
komoritan 0:14bd24b5a77f 5 * and associated documentation files (the "Software"), to deal in the Software without restriction,
komoritan 0:14bd24b5a77f 6 * including without limitation the rights to use, copy, modify, merge, publish, distribute,
komoritan 0:14bd24b5a77f 7 * sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
komoritan 0:14bd24b5a77f 8 * furnished to do so, subject to the following conditions:
komoritan 0:14bd24b5a77f 9 *
komoritan 0:14bd24b5a77f 10 * The above copyright notice and this permission notice shall be included in all copies or
komoritan 0:14bd24b5a77f 11 * substantial portions of the Software.
komoritan 0:14bd24b5a77f 12 *
komoritan 0:14bd24b5a77f 13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
komoritan 0:14bd24b5a77f 14 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
komoritan 0:14bd24b5a77f 15 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
komoritan 0:14bd24b5a77f 16 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
komoritan 0:14bd24b5a77f 17 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
komoritan 0:14bd24b5a77f 18 */
komoritan 0:14bd24b5a77f 19 #ifndef _MURATA_OBJECT_H_
komoritan 0:14bd24b5a77f 20 #define _MURATA_OBJECT_H_
komoritan 0:14bd24b5a77f 21 #include "mbed.h"
komoritan 0:14bd24b5a77f 22
komoritan 0:14bd24b5a77f 23 // KTEC MOD S
komoritan 0:14bd24b5a77f 24 //#define _DEBUG /* If this definition is enabled, debug log is output. */
komoritan 0:14bd24b5a77f 25 #define _DEBUG /* If this definition is enabled, debug log is output. */
komoritan 0:14bd24b5a77f 26 // KTEC MOD E
komoritan 0:14bd24b5a77f 27 //#define _FUNC_TRACE
komoritan 0:14bd24b5a77f 28
komoritan 0:14bd24b5a77f 29 #ifdef _DEBUG
komoritan 0:14bd24b5a77f 30 extern Serial pc;
komoritan 0:14bd24b5a77f 31 #define DEBUG_PRINT(...) { pc.printf(__VA_ARGS__);}
komoritan 0:14bd24b5a77f 32
komoritan 0:14bd24b5a77f 33 #ifdef _FUNC_TRACE
komoritan 0:14bd24b5a77f 34 #define FUNC_IN() { pc.printf( "%s[%d]%s[tid:%x] IN\r\n", __FILE__, __LINE__, __FUNCTION__, Thread::gettid());}
komoritan 0:14bd24b5a77f 35 #define FUNC_OUT() { pc.printf( "%s[%d]%s[tid:%x] OUT\r\n", __FILE__, __LINE__, __FUNCTION__, Thread::gettid() );}
komoritan 0:14bd24b5a77f 36 #else
komoritan 0:14bd24b5a77f 37 #define FUNC_IN()
komoritan 0:14bd24b5a77f 38 #define FUNC_OUT()
komoritan 0:14bd24b5a77f 39 #endif
komoritan 0:14bd24b5a77f 40
komoritan 0:14bd24b5a77f 41 #else
komoritan 0:14bd24b5a77f 42 #define DEBUG_PRINT(...)
komoritan 0:14bd24b5a77f 43 #define FUNC_IN()
komoritan 0:14bd24b5a77f 44 #define FUNC_OUT()
komoritan 0:14bd24b5a77f 45 #endif
komoritan 0:14bd24b5a77f 46
komoritan 0:14bd24b5a77f 47 class C_MurataObject{
komoritan 0:14bd24b5a77f 48
komoritan 0:14bd24b5a77f 49 };
komoritan 0:14bd24b5a77f 50
komoritan 0:14bd24b5a77f 51 #endif