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_OTA_START_NOTIFY "ota.start" // ota start
36#define EVENT_NETCFG_ERROR "netcfg.error" // error happened when netcfg
37#define EVENT_NETCFG_DATA "netcfg.data" // netcfg raw data(ty_cJSON*)
38#define EVENT_MQTT_CONNECTED "mqtt.con" // mqtt connect
39#define EVENT_MQTT_DISCONNECTED "mqtt.disc" // mqtt disconnect
40#define EVENT_LAN_DISABLE "lan.disable" // lan disable
41#define EVENT_LAN_ENABLE "lan.enable" // lan enable
42#define EVENT_LAN_CLIENT_CLOSE "lan.cli.close" // lan client close
43#define EVENT_LAN_LINK_CHNAGED "lan.linkage" // lan linkage changed
44#define EVENT_SUMMER_TZ "summer.tz" // summer time zone update
45#define EVENT_RECOVER_DB "dev.recover.db" // db is lost, device need recover from cloud
46#define EVENT_HEALTH_ALERT "health.alert" // health alert
47#define EVENT_TIME_SYNC "time.sync" // time is sync
48
49#define EVENT_WIFI_STATUS_UPDATE "wifiStatUpdate" // wifi status update event
50
51#define EVENT_BT_LINK_SWITCH "bt_link" // bt link switch event
52
53
54// ota
55#define EVENT_OTA_START_NOTIFY "ota.start"
56#define EVENT_OTA_PROCESS_NOTIFY "ota.process"
57#define EVENT_OTA_FAILED_NOTIFY "ota.failed"
58#define EVENT_OTA_FINISHED_NOTIFY "ota.finished"
59
60#ifdef __cplusplus
61}
62#endif /* __cplusplus */
63
64#endif /*__BASE_EVENT_H__ */
65
66