Xively Official / mbed-libxively-5d6fdd4

Dependents:   xively-jumpstart-demo

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mbed_comm_layer.c Source File

mbed_comm_layer.c

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_layer.c
00006  * \author     Olgierd Humenczuk
00007  * \brief   Implements mbed _communication layer_ abstraction interface [see comm_layer.h]
00008  */
00009 
00010 #include "comm_layer.h"
00011 #include "mbed_comm.h"
00012 
00013  /**
00014   * \brief   Initialise POSIX implementation of the _communication layer_
00015   */
00016 const comm_layer_t* get_comm_layer()
00017 {
00018     static comm_layer_t __mbed_comm_layer =
00019     {
00020           &mbed_open_connection
00021         , &mbed_send_data
00022         , &mbed_read_data
00023         , &mbed_close_connection
00024     };
00025 
00026     return &__mbed_comm_layer;
00027 }