sl_wisun_msg_advert_direct_connect_server_id#

Modules#

sl_wisun_msg_advert_direct_connect_server_id_cnf_body_t

sl_wisun_msg_advert_direct_connect_server_id_cnf_t

sl_wisun_msg_advert_direct_connect_server_id_req_body_t

sl_wisun_msg_advert_direct_connect_server_id_req_t

sl_wisun_msg_start_direct_connect_client

sl_wisun_msg_start_direct_connect_scan

sl_wisun_msg_stop_direct_connect_scan

sl_wisun_msg_connect_to_direct_connect_server

sl_wisun_msg_stop_direct_connect_client

sl_wisun_set_phy_sensitivity

sl_wisun_msg_set_direct_connect_pmk_id

sl_wisun_msg_set_preferred_pan

sl_wisun_msg_set_lfn_timings

sl_wisun_msg_config_concurrent_detection

sl_wisun_msg_set_regulation_params

sl_wisun_msg_reset_regulation_duty_cycle

sl_wisun_msg_set_eap_identity

sl_wisun_msg_set_fan_tps_version

sl_wisun_msg_set_rx_fifo_size

sl_wisun_msg_register_address

sl_wisun_msg_set_dhcpv6_vendor_data

Functions#

sl_status_t
sl_wisun_send_request(const void *req, uint16_t req_len, void *cnf, uint16_t cnf_len)

Send a request to the Wi-SUN stack.

Function Documentation#

sl_wisun_send_request#

sl_status_t sl_wisun_send_request (const void * req, uint16_t req_len, void * cnf, uint16_t cnf_len)

Send a request to the Wi-SUN stack.

Parameters
TypeDirectionArgument NameDescription
const void *[in]req

Pointer to the request message buffer

uint16_t[in]req_len

Length of the request message in bytes (must match req->header.length)

void *[out]cnf

Pointer to confirmation message buffer

uint16_t[in]cnf_len

Length of the confirmation message buffer in bytes

This function provides an interface for sending requests to the Wi-SUN stack and receiving confirmations. When using blocking requests, the function blocks until the request is processed and a confirmation is available.

REQ/CNF buffer layout: request: | Header (4B) | Request body (varies) | Trailing data (if any) | confirmation: | Header (4B) | Confirmation body (varies) | Trailing data (if any) |

Header structure:

  • length: uint16_t - Total message length including header and trailing data

  • id: uint8_t - Message identifier

  • info: uint8_t - Message flags and metadata

  • req != NULL && cnf != NULL

  • req_len >= sizeof(sl_wisun_msg_header_t)

  • cnf_len >= sizeof(sl_wisun_msg_header_t) + sizeof(uint32_t) (header + status)

  • req->header.length == req_len (length consistency check)

Returns

  • SL_STATUS_OK Request processed successfully

  • SL_STATUS_INVALID_PARAMETER Invalid parameters or buffer size mismatch

  • SL_STATUS_NULL_POINTER NULL pointer parameter

  • SL_STATUS_FAIL Internal processing error or handler failure

Note

  • Blocking behavior: When using blocking requests, this function blocks the calling thread until the request is processed.

See Also