Basic Hello World
Displays Hello World!
on a ZentriOS terminal.
- SDK directory:
apps/basic/hello_world
- Zentri App Store:
ZENTRI-BAHELLOWORLD
API Features Demonstrated
This demonstrates the basic structure of a ZentriOS app.
- ZentriOS terminal output macros
Platforms
This app works on:
- AMW004 - Zentri Mackerel evaluation board
- AMW106 - Zentri Moray evaluation board
- NXP-SCCK - NXP Secure Cloud Connectivity Kit
Requirements and Prerequisites
This app requires a ZentriOS device.
Description
This app prints the text Hello World!
to the log bus which can be viewed on a ZentriOS terminal.
See Application Development, ZentriOS Application Structure.
zn_app_init
Initialization. Logs a line of text. No events are set up. With no events to process the next function executed is zn_app_idle
.
zn_app_idle
Event loop idle handling. In this case returns ZOS_FALSE
so the app exits after executing zn_app_deinit
.
zn_app_deinit
Cleanup prior to exit. In this case does nothing.
Source
See: