Following structure is used to register application with wiced_bt_spp library
| wiced_bt_spp_connection_down_callback_t wiced_bt_spp_reg_t::p_connection_down_callback |
iAP2 connection disconnected
| wiced_bt_spp_connection_failed_callback_t wiced_bt_spp_reg_t::p_connection_failed_callback |
iAP2 connection establishment failed
| wiced_bt_spp_connection_up_callback_t wiced_bt_spp_reg_t::p_connection_up_callback |
iAP2 connection established
| wiced_bt_spp_rx_data_callback_t wiced_bt_spp_reg_t::p_rx_data_callback |
Data packet received
| wiced_bt_spp_service_not_found_callback_t wiced_bt_spp_reg_t::p_service_not_found_callback |
iAP2 service not found
| uint16_t wiced_bt_spp_reg_t::rfcomm_mtu |
MTU to be be used by the RFCOMM layer
| uint8_t wiced_bt_spp_reg_t::rfcomm_scn |
Application selects RFCOMM SCN that it publishes in the SDP and need to pass the same value for library to use.