AliOS-Things linkkitapp解读

app-example-linkkitapp是AliOS-Things提供的设备联网并且和阿里云IOT平台数据交互的一个示例程序:

  1:application_start()程序在app_entry.c中,入口程序内#ifdef #endif中的内容都是条件编译的内容,CONFIG_PRINT_HEAP打印堆信息,WITH SAL代表AT适配。

  2:int aos_register_event_filter(uint16_t type, aos_event_cb cb, void *priv),当type的事件发生时调用运行cb回调函数,其中第三个参数是传递给回调函数的参数;

  3:事件类型下有具体的各种事件类型值的宏定义,请参看yloop.h

猜你喜欢

转载自www.cnblogs.com/braveheart007/p/10359148.html