TuyaOS
base_event_info.h
浏览该文件的文档.
1
11#ifndef __BASE_EVENT_INFO_H__
12#define __BASE_EVENT_INFO_H__
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
22#define EVENT_RESET "dev.reset" // device reset
23#define EVENT_INIT "dev.init" // sdk init finished, device init start
24#define EVENT_RUN "dev.run" // sdk active finished, device run start
25#define EVENT_REBOOT_REQ "dev.reboot.req" // device health check reboot request, application should subscribe it if needed
26#define EVENT_REBOOT_ACK "dev.reboot.ack" // device health check reboot ack, application should publish when it ready
27#define EVENT_CAD_VER_UPDATE "cad.update" // cad protocol update
28#define EVENT_FW_VER_UPDATE "fw.update" // firmware version update
29#define EVENT_POST_ACTIVATE "activate.post" // active
30#define EVENT_PROD_INFO_CHANGED "prod.chg" //
31#define EVENT_HTTP_FAILED "http.failed" // http request failed
32#define EVENT_SDK_EARLY_INIT_OK "early.init" // before kv flash init
33#define EVENT_SDK_DB_INIT_OK "db.init" // before db init
34#define EVENT_SCHEMA_UPDATE "schema.update" // schema update
35#define EVENT_NETCFG_ERROR "netcfg.error" // error happened when netcfg
36#define EVENT_NETCFG_DATA "netcfg.data" // netcfg raw data(ty_cJSON*)
37#define EVENT_MQTT_CONNECTED "mqtt.con" // mqtt connect
38#define EVENT_MQTT_DISCONNECTED "mqtt.disc" // mqtt disconnect
39#define EVENT_LAN_DISABLE "lan.disable" // lan disable
40#define EVENT_LAN_ENABLE "lan.enable" // lan enable
41#define EVENT_LAN_CLIENT_CLOSE "lan.cli.close" // lan client close
42#define EVENT_LAN_LINK_CHNAGED "lan.linkage" // lan linkage changed
43#define EVENT_SUMMER_TZ "summer.tz" // summer time zone update
44#define EVENT_RECOVER_DB "dev.recover.db" // db is lost, device need recover from cloud
45#define EVENT_HEALTH_ALERT "health.alert" // health alert
46#define EVENT_RSC_UPDATE "rsc.update" // rsc update
47#define EVENT_TIME_SYNC "time.sync" // time is sync
48#define EVENT_SENIOR_ABILITY "senior.ability" // senior ability
49#define EVENT_MF_ENTER "mf_enter" // mf enter
50#define EVENT_MF_EXIT "mf_exit" // mf exit
51
52#define EVENT_WIFI_STATUS_UPDATE "wifiStatUpdate" // wifi status update event
53#define EVENT_WIFI_CONNECT_START "wifi.con.start" // start to connect wifi
54#define EVENT_WIFI_CONNECT_SUCCESS "wifi.con.ok" // succeed to connect wifi
55#define EVENT_WIFI_CONNECT_FAILED "wifi.con.fail" // failed to connect wifi
56
57#define EVENT_BT_LINK_SWITCH "bt_link" // bt link switch event
58
59#define EVENT_BT_V2_CRPT "bt_v2_crpt" // bt v2 crpt event
60#define EVENT_AP_CFG_4G "ap_cfg_4g" // AP cfg 4G event
61
62
63// ota
64// #define EVENT_OTA_START_NOTIFY "ota.start"
65#define EVENT_OTA_PROCESS_NOTIFY "ota.process"
66#define EVENT_OTA_FAILED_NOTIFY "ota.failed"
67#define EVENT_OTA_FINISHED_NOTIFY "ota.finished"
68
69#ifdef __cplusplus
70}
71#endif /* __cplusplus */
72
73#endif /*__BASE_EVENT_H__ */
74
75