Example Applications
The ZentriOS SDK includes a growing list of examples demonstrating how to write applications that run on ZentriOS. Example apps are grouped into several categories.
Basic Examples
Basic examples demonstrate how to use an individual API group. For example, the udp_client app demonstrates how to use the UDP Client/Server API to send data to a remote UDP server. APIs from other groups may also be used in some apps, but typically only to support the demonstration.
Demo Examples
Demo examples combine the use of APIs from various API groups and libraries. These examples demonstrate how ZentriOS can be used to build sophisticated and more complex apps.
NXP Examples
These examples demonstrate how to use peripherals provided exclusively on the NXP-SCCK.
Sensor Examples
Sensor examples demonstrate how to acquire and manage sensor data. For example, the accel_interrupt app demonstrates how to read accelerometer data when interrupted by the accelerometer. The data is read and displayed on a web page served by the ZentriOS HTTP webserver. See also SDK Drivers Library.
Platform Support
Platforms supported by the ZentriOS SDK include the AMW004 'Wallaby' module, AMW106 'Numbat 106' module, and the NXP-SCCK. See Hardware Support.
Example applications listed in the following tables have been tested to work with evaluation boards for each of these platforms:
- AMW004: Zentri Mackerel evaluation board
- AMW106: Zentri Moray evaluation board
See Using AMW106 Button 1 with the ZentriOS SDK. - NXP-SCCK: NXP Secure Cloud Connectivity Kit
Basic Example Apps
Application | AMW004 | AMW106 | NXP-SCCK |
---|---|---|---|
adc | ✔ | ✔ | ✔ |
aes_ctr | ✔ | ✔ | ✔ |
blinky | ✔ | ✔ | ➕ |
buffer_dump | ✔ | ✔ | ✔ |
button | ✔ | ✔ | ❌ |
display_animation | ➕ | ➕ | ❌ |
display_stream | ➕ | ➕ | ❌ |
file_list | ✔ | ✔ | ✔ |
gpio | ✔ | ✔ | ❌ |
hello_led_matrix | ➕ | ➕ | ❌ |
hello_world | ✔ | ✔ | ✔ |
http_methods | ✔ | ✔ | ✔ |
http_server | ✔ | ✔ | ✔ |
http_stream | ✔ | ✔ | ✔ |
i2c | ✔ | ➕ | ✔ |
json_parser | ✔ | ✔ | ✔ |
log_file | ✔ | ✔ | ✔ |
network_verify | ✔ | ✔ | ✔ |
nfc_url | ➕ | ➕ | ✔ |
scan | ✔ | ✔ | ✔ |
softap_tcp_server | ✔ | ✔ | ✔ |
system_monitor | ✔ | ✔ | ✔ |
tcp_client | ✔ | ✔ | ✔ |
uart | ✔ | ✔ | ✔ |
udp_client | ✔ | ✔ | ✔ |
udp_hello_gpio | ✔ | ✔ | ✔ |
web_setup | ✔ | ✔ | ✔ |
websocket_client | ✔ | ✔ | ✔ |
websocket_server | ✔ | ✔ | ✔ |
Demo Example Apps
Application | AMW004 | AMW106 | NXP-SCCK |
---|---|---|---|
accelerometer-stream | ✔ | ➕ | ✔ (use BMI160 driver) |
led_matrix | ➕ | ➕ | ✱ |
moray3d | ➕ | ➕ | ❌ |
pong | ➕ | ➕ | ❌ |
uart_blaster | ✔ | ✔ | ✔ |
NXP Example Apps
Application | AMW004 | AMW106 | NXP-SCCK |
---|---|---|---|
lcd_hello_world | ❌ | ❌ | ✔ |
nfc3d | ❌ | ❌ | ✔ |
nxp3d | ❌ | ❌ | ✔ |
Sensor Example Apps
Application | AMW004 | AMW106 | NXP-SCCK |
---|---|---|---|
accelerometer | ✔ | ➕ | ✔ (use BMI160 driver) |
accel_interrupt | ➕ | ➕ | ➕ |
custom_driver | ➕ | ➕ | ➕ |
custom_sensors | ➕ | ➕ | ➕ |
gyroscope | ➕ | ➕ | ➕ |
hygrometer | ➕ | ➕ | ➕ |
io_expander | ➕ | ➕ | ➕ |
magnetometer | ➕ | ➕ | ➕ |
thermometer | ➕ | ➕ | ✔ (use LM75A driver) |
Legend
Symbol | Description |
---|---|
✔ | Supported natively on the standard evaluation board. |
➕ | Additional sensor hardware required for operation on this platform. |
✱ | Drivers under development. |
❌ | Not supported on this platform. |