Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-libxively-6eca970 by
mbed_comm.h
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__
Generated on Wed Jul 13 2022 02:16:22 by
1.7.2
