User Callbacks - Mediatek Labs LinkIt Connect 7681 Developer's Manual

Table of Contents

Advertisement

While this is an example of the log for AP mode:
==> Recovery Mode
<== Recovery Mode
(-)
load_ap_cfg
store_ap_cfg
===> APStartUp
PMK Updating ...
AP SETTING: SSID[MT7681_AP1], AuthMode[9], WepStatus[8], Channel[8]
APStartUp ...
OK
[WTask]53637
4.4.

User callbacks

MT7681 firmware provides callback functions that will be called when specific events occur. The
main callback functions you'll use are:
iot_cust_preinit()
iot_cust_init()
iot_cust_subtask1()
Details on registering, the process flow, and introduction to these main callback are provided in
this section.
4.4.1.
Registering callbacks
Any callbacks used must be registered in iot_cust_ops(), as shown in the code below:
void
iot_cust_ops(void)
{
/*Callback in system Boot state, do not print msg as Uart is not
ready*/
IoTCustOp.IoTCustPreInit
/*The callback in system initial state*/
IoTCustOp.IoTCustInit
...
/* The callback in
every cycle of the wifi main task*/
IoTCustOp.IoTCustSubTask1
...
}
This document contains information that is proprietary to MediaTek Inc.
Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited.
MediaTek LinkIt™ Connect 7681 Developer's Guide
/*start to running recovery/Calibration image*/
/* end to running recovery/Calibration image*/
/*start to running AP image*/
= iot_cust_preinit;
= iot_cust_init;
the wifi main task , it will be called
= iot_cust_subtask1;
© 2015, 2016 MediaTek Inc.
Page 29 of 65

Advertisement

Table of Contents
loading

Related Products for Mediatek Labs LinkIt Connect 7681

Table of Contents