remove print in defender demo because it crashs on pc
@@ -72,10 +72,6 @@ static void _defenderTask( void * param );
static void _defenderCallback( void * param1,
AwsIotDefenderCallbackInfo_t * const pCallbackInfo );
-/* Deserialze the data and print out in more readable way. */
-static void _print( const uint8_t * pDataBuffer,
- size_t dataSize );
-
static void _startDefender();
/*-----------------------------------------------------------*/
@@ -124,8 +120,7 @@ void _defenderCallback( void * param1,
/* Print out the sent metrics report if there is. */
if( pCallbackInfo->pMetricsReport != NULL )
{
- IotLogInfo( "\nPublished metrics report:" );
- _print( pCallbackInfo->pMetricsReport, pCallbackInfo->metricsReportLength );
+ IotLogInfo( "\nPublished metrics report." );
}
else
{
@@ -134,8 +129,7 @@ void _defenderCallback( void * param1,
if( pCallbackInfo->pPayload != NULL )
{
- IotLogInfo( "\nReceived MQTT message:" );
- _print( pCallbackInfo->pPayload, pCallbackInfo->payloadLength );
+ IotLogInfo( "\nReceived MQTT message." );
}
else
{
@@ -266,12 +260,4 @@ static Socket_t _createSocketToEchoServer()
return socket;
}
-#endif
-
-/*-----------------------------------------------------------*/
-
-static void _print( const uint8_t * pDataBuffer,
- size_t dataSize )
-{
- IotLogInfo( "%.*s\r\n", dataSize, pDataBuffer );
-}
+#endif /* if _DEMO_WITH_SOCKET_CONNECTED_TO_ECHO_SERVER == 1 */
