basic/hello_world/hello_world.c

See examples/basic/hello-world

/*
* ZentriOS SDK LICENSE AGREEMENT | Zentri.com, 2015.
*
* Use of source code and/or libraries contained in the ZentriOS SDK is
* subject to the Zentri Operating System SDK license agreement and
* applicable open source license agreements.
*
*/
/*
* Documentation for this app is available online.
* See https://docs.zentri.com/wifi/sdk/latest/examples/basic/hello-world
*/
#include "zos.h"
/*************************************************************************************************/
void zn_app_init(void)
{
// This is called when the application first starts.
// This is where the application should initialize data structures and register event handlers.
// This API is required.
// Print to the log bus
ZOS_LOG("Hello world!!");
}
/*************************************************************************************************/
void zn_app_deinit(void)
{
// This API is called just before the application finishes.
// Anything initialized or allocated by the app should be cleaned here.
// This API is optional.
}
/*************************************************************************************************/
zos_bool_t zn_app_idle(void)
{
// This is called when the event thread has no more pending events.
// It should return ZOS_FALSE if the application should exit,
// or ZOS_TRUE if the application should idle and wait for more events.
// This API is optional.
return ZOS_FALSE; // in this simple case we return false so the application exits
}