Xively Official / mbed-libxively-5d6fdd4

Dependents:   xively-jumpstart-demo

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mbed_comm.h Source File

mbed_comm.h

Go to the documentation of this file.
00001 // Copyright (c) 2003-2013, LogMeIn, Inc. All rights reserved.
00002 // This is part of Xively C library, it is under the BSD 3-Clause license.
00003 
00004 /**
00005  * \file     mbed_comm.h
00006  * \author     Olgierd Humenczuk
00007  * \brief   Implements mbed _communication layer_ functions [see comm_layer.h and mbed_comm.cpp]
00008  */
00009 
00010 #ifndef __MBED_COMM_H__
00011 #define __MBED_COMM_H__
00012 
00013 #include "connection.h"
00014 
00015 #ifdef __cplusplus
00016 extern "C" {
00017 #endif
00018 
00019 connection_t* mbed_open_connection( const char* address, int32_t port );
00020 
00021 int mbed_send_data( connection_t* conn, const char* data, size_t size );
00022 
00023 int mbed_read_data( connection_t* conn, char* buffer, size_t buffer_size );
00024 
00025 void mbed_close_connection( connection_t* conn );
00026 
00027 #ifdef __cplusplus
00028 }
00029 #endif
00030 
00031 #endif // __MBED_COMM_H__