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
49#define EVENT_WIFI_PRE_DISCON "wifi.pre.discon" // wifi pre disconent event
50#define EVENT_WIFI_PRE_CONN "wifi.pre.conn" // wifi pre connect event
51
52#define EVENT_WIFI_STATUS_UPDATE "wifiStatUpdate" // wifi status update event
53
54#define EVENT_BT_LINK_SWITCH "bt_link" // bt link switch event
55
56#define EVENT_BT_V2_CRPT "bt_v2_crpt" // bt v2 crpt event
57
58
59// ota
60#define EVENT_OTA_START_NOTIFY "ota.start"
61#define EVENT_OTA_PROCESS_NOTIFY "ota.process"
62#define EVENT_OTA_FAILED_NOTIFY "ota.failed"
63#define EVENT_OTA_FINISHED_NOTIFY "ota.finished"
64
65#ifdef __cplusplus
66}
67#endif /* __cplusplus */
68
69#endif /*__BASE_EVENT_H__ */
70
71