Commit 1080802e authored by danicampora's avatar danicampora
Browse files

cc3200: Update socket event handler to align with new SDK(1.1.0) API.

parent dc545d65
......@@ -236,14 +236,19 @@ void SimpleLinkWlanEventHandler(SlWlanEvent_t *pWlanEvent)
}
break;
case SL_WLAN_STA_CONNECTED_EVENT:
// TODO
break;
case SL_WLAN_STA_DISCONNECTED_EVENT:
// TODO
break;
case SL_WLAN_P2P_DEV_FOUND_EVENT:
// TODO
break;
case SL_WLAN_P2P_NEG_REQ_RECEIVED_EVENT:
// TODO
break;
case SL_WLAN_CONNECTION_FAILED_EVENT:
// TODO
break;
default:
break;
......@@ -358,9 +363,27 @@ void SimpleLinkSockEventHandler(SlSockEvent_t *pSock)
switch( pSock->Event ) {
case SL_SOCKET_TX_FAILED_EVENT:
switch( pSock->socketAsyncEvent.SockTxFailData.status) {
case SL_ECLOSE:
break;
default:
break;
}
break;
default:
case SL_SOCKET_ASYNC_EVENT:
switch(pSock->socketAsyncEvent.SockAsyncData.type) {
case SSL_ACCEPT:
//accept failed due to ssl issue ( tcp pass)
break;
case RX_FRAGMENTATION_TOO_BIG:
break;
case OTHER_SIDE_CLOSE_SSL_DATA_NOT_ENCRYPTED:
default:
break;
}
break;
default:
break;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment