Lines Matching refs:dm_handle
111 static void demo_dm_recv_handler(void *dm_handle, const aiot_dm_recv_t *recv, void *userdata) in demo_dm_recv_handler() argument
254 int32_t demo_send_property_post(void *dm_handle, char *params) in demo_send_property_post() argument
262 return aiot_dm_send(dm_handle, &msg); in demo_send_property_post()
266 int32_t demo_send_event_post(void *dm_handle, char *event_id, char *params) in demo_send_event_post() argument
275 return aiot_dm_send(dm_handle, &msg); in demo_send_event_post()
279 int32_t demo_send_get_desred_requset(void *dm_handle) in demo_send_get_desred_requset() argument
287 return aiot_dm_send(dm_handle, &msg); in demo_send_get_desred_requset()
291 int32_t demo_send_delete_desred_requset(void *dm_handle) in demo_send_delete_desred_requset() argument
299 return aiot_dm_send(dm_handle, &msg); in demo_send_delete_desred_requset()
306 void *dm_handle = NULL; in demo_main() local
355 dm_handle = aiot_dm_init(); in demo_main()
356 if (dm_handle == NULL) { in demo_main()
361 aiot_dm_setopt(dm_handle, AIOT_DMOPT_MQTT_HANDLE, mqtt_handle); in demo_main()
363 aiot_dm_setopt(dm_handle, AIOT_DMOPT_RECV_HANDLER, (void *)demo_dm_recv_handler); in demo_main()
395 demo_send_property_post(dm_handle, "{\"LightSwitch\": 0}"); in demo_main()
396 demo_send_event_post(dm_handle, "Error", "{\"ErrorCode\": 0}"); in demo_main()
410 res = aiot_dm_deinit(&dm_handle); in demo_main()