1 /*
2  * Copyright (C) 2015-2019 Alibaba Group Holding Limited
3  */
4 
5 #ifndef APP_MESSAGE_H
6 #define APP_MESSAGE_H
7 
8 #include <stdint.h>
9 
10 /* device active info report */
11 #define APPLICATION "soundbox" // product of application
12 #define MODULE_NAME aos_get_platform_type() // module type
13 
14 /* device info report format */
15 #define DEVICE_INFO_UPDATE_FMT \
16     "[" \
17     "{\"attrKey\":\"SYS_SDK_LANGUAGE\",\"attrValue\":\"C\",\"domain\":" \
18     "\"SYSTEM\"}" \
19     "{\"attrKey\":\"SYS_LP_SDK_VERSION\",\"attrValue\":\"aos-r-3.0.0\"," \
20     "\"domain\":\"SYSTEM\"}" \
21     "{\"attrKey\":\"SYS_PARTNER_ID\",\"attrValue\":\"AliOS Things " \
22     "Team\",\"domain\":\"SYSTEM\"}" \
23     "{\"attrKey\":\"SYS_MODULE_ID\",\"attrValue\":\"haas-amp-%s@%s\"," \
24     "\"domain\":\"SYSTEM\"}" \
25     "]"
26 
27 /* device location info format */
28 #define LBS_INFO_FMT "{\"params\":\"{\"cdma\":\"0\",\"bts\":\"%s\",\"nearbts\":\"%s\"}\"}"
29 
30 int32_t pyamp_internal_service_subscribe(void *mqtt_handle);
31 
32 int32_t pyamp_internal_service_publish(void *mqtt_handle);
33 
34 int32_t amp_das_service(void *mqtt_handle);
35 
36 int32_t pyamp_ntp_service(void *mqtt_handle);
37 
38 int32_t pyamp_location_service(void *mqtt_handle);
39 
40 int32_t pyamp_devinfo_report_service(void *mqtt_handle);
41 
42 #endif /* APP_MESSAGE_H */
43