Azure IoT common library

Dependents:   STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more

Revision:
6:c55b013dfc2a
Parent:
1:9190c0f4d23a
Child:
10:1be0bc9a9deb
--- a/socketio_mbed.c	Fri Jun 17 17:03:29 2016 -0700
+++ b/socketio_mbed.c	Fri Jul 01 10:43:23 2016 -0700
@@ -12,7 +12,7 @@
 #include "azure_c_shared_utility/socketio.h"
 #include "azure_c_shared_utility/list.h"
 #include "azure_c_shared_utility/tcpsocketconnection_c.h"
-#include "azure_c_shared_utility/iot_logging.h"
+#include "azure_c_shared_utility/xlogging.h"
 
 #define UNABLE_TO_COMPLETE -2
 #define MBED_RECEIVE_BYTES_VALUE    128
@@ -38,7 +38,6 @@
 typedef struct SOCKET_IO_INSTANCE_TAG
 {
     TCPSOCKETCONNECTION_HANDLE tcp_socket_connection;
-    LOGGER_LOG logger_log;
     ON_BYTES_RECEIVED on_bytes_received;
     ON_IO_ERROR on_io_error;
     void* on_bytes_received_context;
@@ -108,7 +107,7 @@
     return result;
 }
 
-CONCRETE_IO_HANDLE socketio_create(void* io_create_parameters, LOGGER_LOG logger_log)
+CONCRETE_IO_HANDLE socketio_create(void* io_create_parameters)
 {
     SOCKETIO_CONFIG* socket_io_config = io_create_parameters;
     SOCKET_IO_INSTANCE* result;
@@ -143,7 +142,6 @@
                     result->port = socket_io_config->port;
                     result->on_bytes_received = NULL;
                     result->on_io_error = NULL;
-                    result->logger_log = logger_log;
                     result->on_bytes_received_context = NULL;
                     result->on_io_error_context = NULL;
                     result->io_state = IO_STATE_CLOSED;
@@ -328,12 +326,6 @@
                         on_send_complete(callback_context, IO_SEND_OK);
                     }
 
-                    size_t i;
-                    for (i = 0; i < size; i++)
-                    {
-                        LOG(socket_io_instance->logger_log, 0, "%02x-> ", ((unsigned char*)buffer)[i]);
-                    }
-
                     result = 0;
                 }
             }