File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed
modules/hal_silabs/wiseconnect
soc/silabs/silabs_siwx91x/siwg917 Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -89,6 +89,15 @@ config WIFI_SILABS_SIWX91X_HTTP_CLIENT
89
89
than the Zephyr one. See also sl_http_client.h in Silabs HAL for more
90
90
information about the API.
91
91
92
+ config WIFI_SILABS_SIWX91X_MQTT_CLIENT
93
+ bool "Offloaded implementation of MQTT client"
94
+ help
95
+ Enable this option to allow to use the MQTT(Message Queuing Telemetry
96
+ Transport) implementation provided by the Network Co-Processor present
97
+ on SiWx91x series. This implementation usually require less resources
98
+ than the Zephyr one. See also sl_mqtt_client.h in Silabs HAL for more
99
+ information about the API.
100
+
92
101
config WIFI_SILABS_SIWX91X_ENABLE_ROAMING
93
102
bool "WiFi roaming support"
94
103
default y
Original file line number Diff line number Diff line change @@ -133,6 +133,16 @@ if(CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD)
133
133
${WISECONNECT_DIR} /components/service/http_client/si91x_socket/sl_http_client.c
134
134
${WISECONNECT_DIR} /components/device/silabs/si91x/wireless/src/sl_si91x_http_client_callback_framework.c
135
135
)
136
+ zephyr_compile_definitions_ifdef (CONFIG_WIFI_SILABS_SIWX91X_MQTT_CLIENT
137
+ SLI_SI91X_EMBEDDED_MQTT_CLIENT
138
+ )
139
+ zephyr_include_directories_ifdef (CONFIG_WIFI_SILABS_SIWX91X_MQTT_CLIENT
140
+ ${WISECONNECT_DIR} /components/service/mqtt/inc
141
+ ${WISECONNECT_DIR} /components/device/silabs/si91x/wireless/inc/mqtt/inc
142
+ )
143
+ zephyr_library_sources_ifdef (CONFIG_WIFI_SILABS_SIWX91X_MQTT_CLIENT
144
+ ${WISECONNECT_DIR} /components/service/mqtt/si91x/sl_mqtt_client.c
145
+ )
136
146
endif () # CONFIG_WIFI_SILABS_SIWX91X_NET_STACK_OFFLOAD
137
147
if (CONFIG_BT_SILABS_SIWX91X )
138
148
zephyr_compile_definitions (
Original file line number Diff line number Diff line change @@ -133,6 +133,9 @@ static void siwx91x_configure_network_stack(sl_si91x_boot_configuration_t *boot_
133
133
if (IS_ENABLED (CONFIG_WIFI_SILABS_SIWX91X_HTTP_CLIENT )) {
134
134
boot_config -> tcp_ip_feature_bit_map |= SL_SI91X_TCP_IP_FEAT_HTTP_CLIENT ;
135
135
}
136
+ if (IS_ENABLED (CONFIG_WIFI_SILABS_SIWX91X_MQTT_CLIENT )) {
137
+ boot_config -> ext_tcp_ip_feature_bit_map |= SL_SI91X_EXT_EMB_MQTT_ENABLE ;
138
+ }
136
139
boot_config -> ext_tcp_ip_feature_bit_map |= SL_SI91X_EXT_TCP_IP_WINDOW_SCALING ;
137
140
boot_config -> ext_tcp_ip_feature_bit_map |= SL_SI91X_EXT_TCP_IP_TOTAL_SELECTS (10 );
138
141
You can’t perform that action at this time.
0 commit comments