Wiced Software Examples; Finding Demo And Code Snippets; Snippets For Learning The Wiced Framework; Snippets For Wi-Fi - Laird LSR STERLING-LWB STM Quick Start Manual

Table of Contents

Advertisement

3.3 WICED Software Examples

3.3.1 Finding demo and code snippets

The 43xxx_Wi-Fi/apps folder is the place to go for example code to run with your Sterling-LWB STM Expansion
Board. Note that not all demo and snip projects distributed with the WICED SDK are designed for use with all radio
modules.
This guide will highlight several that are known to work properly with basic Wi-Fi and Bluetooth functionality on
the Sterling-LWB (BCM4343W). Some projects, may not be supported on the BCM4343W or may require code
modifications to either the demo/snip code or the WICED SDK to function properly.
IMPORTANT: For snip or demo projects whose .mk file specifies a "VALID_PLATFORMS" entry, you must add the
following line to the .mk file to allow building the project for the Sterling-LWB platform:
VALID_PLATFORMS

3.3.2 Snippets for learning the WICED framework

The table below shows several snippets that are useful for learning WICED framework concepts and
APIs.
Subfolder of
43xxx_Wi-Fi/apps/snip
stdio
gpio
spi_slave
uart
dct_read_write

3.3.3 Snippets for Wi-Fi

The table below shows several snippets that are useful for learning how to operate the Sterling-LWB Wi-
Fi radio for basic networking functionality.
Subfolder of
43xxx_Wi-Fi/apps/snip
ping_powersave
scan
apsta
tcp_client
tcp_server
udp_transmit
udp_receive

3.3.4 Snippets for Bluetooth

The table below shows several snippets that are useful for learning how to operate the Sterling-LWB
Bluetooth Low Energy radio in both peripheral and central modes.
Subfolder of
43xxx_Wi-Fi/apps/snip
bluetooth/ble_hello_sensor
bluetooth/bt_dualmode_server
<BLE Central Role>
The information in this document is subject to change without notice.
330-0234-R1.2
+= LSRSTERLING_00950
Description
Demonstrates how to use printf() and scanf() c library functions to interact with the debug UART
Demonstrates use of the WICED APIs for manipulating general purpose I/O (GPIO)
Demonstrates use of SPI for master and slave device configurations via the WICED SDK API
Demonstrates use of UARTs via the WICED SDK API
Demonstrates use of the Device Configuration Table (DCT) used throughout the WICED SDK
Description
Demonstrates Wi-Fi client mode, ICMP ping, MCU powersave and Wi-Fi powersave. Takes Wi-Fi
network configuration from "43xxx_Wi-Fi/include/default_wifi_config_dct.h".
Demonstrates performing a Wi-Fi AP scan. Results of the scan are displayed on the debug UART
Demonstrates use of "Soft AP" mode and "client" mode simultaneously
Basic example of a TCP/IP client
Basic example of a TCP/IP server
Basic example of transmitting UDP packets
Basic example of receiving UDP packets
Description
Demonstrates a simple BLE peripheral that advertises a simple "hello" service for learning
the WICED SDK BLE apis. For more information on the BLE APIs, see 43xxx_Wi-
Fi/doc/API.html
Demonstrates simultaneous BLE GATT and Bluetooth Classic RFCOMM servers
At the time of publishing this document, there is not a snippet that demonstrates BLE
central role even though the SDK supports it. To find API features related to BLE central
role, refer to the "43xxx_Wi-Fi/doc/API.html" documentation under the
"Components->Bluetooth->Device Management->BLE" section for details.
Copyright ©2016-2017 LSR
Sterling-LWB STM Expansion Board
USER GUIDE
Page 12 of 25

Advertisement

Table of Contents
loading

Table of Contents