Home
last modified time | relevance | path

Searched refs:dm_handle (Results 1 – 25 of 28) sorted by relevance

12

/AliOS-Things-master/components/linksdk/components/data-model/
A Daiot_dm_api.c473 dm_handle->recv_handler(dm_handle, &recv, dm_handle->userdata); in _dm_recv_generic_reply_handler()
510 dm_handle->recv_handler(dm_handle, &recv, dm_handle->userdata); in _dm_recv_property_set_handler()
548 dm_handle->recv_handler(dm_handle, &recv, dm_handle->userdata); in _dm_recv_async_service_invoke_handler()
589 dm_handle->recv_handler(dm_handle, &recv, dm_handle->userdata); in _dm_recv_sync_service_invoke_handler()
620 dm_handle->recv_handler(dm_handle, &recv, dm_handle->userdata); in _dm_recv_raw_data_handler()
649 dm_handle->recv_handler(dm_handle, &recv, dm_handle->userdata); in _dm_recv_up_raw_reply_data_handler()
680 dm_handle->recv_handler(dm_handle, &recv, dm_handle->userdata); in _dm_recv_raw_sync_service_invoke_handler()
728 if (NULL == dm_handle) { in aiot_dm_init()
737 return dm_handle; in aiot_dm_init()
742 dm_handle_t *dm_handle; in aiot_dm_setopt() local
[all …]
/AliOS-Things-master/solutions/flower_demo/
A Ddata_model_basic_demo.c268 return aiot_dm_send(dm_handle, &msg); in demo_send_property_post()
281 return aiot_dm_send(dm_handle, &msg); in demo_send_event_post()
285 int32_t demo_send_get_desred_requset(void *dm_handle) in demo_send_get_desred_requset() argument
293 return aiot_dm_send(dm_handle, &msg); in demo_send_get_desred_requset()
305 return aiot_dm_send(dm_handle, &msg); in demo_send_delete_desred_requset()
312 void *dm_handle = NULL; in demo_main() local
361 dm_handle = aiot_dm_init(); in demo_main()
362 g_dm_handle = dm_handle; in demo_main()
363 if (dm_handle == NULL) { in demo_main()
401 report_2_cloud(dm_handle); in demo_main()
[all …]
A Dflower_app.c175 void report_2_cloud(void *dm_handle) in report_2_cloud() argument
181 printf("mqtt status :%d %p\r\n",mqtt_status,dm_handle); in report_2_cloud()
191 demo_send_property_post(dm_handle, property_payload); in report_2_cloud()
197 demo_send_property_post(dm_handle, property_payload); in report_2_cloud()
A Dflower_app.h9 void report_2_cloud(void *dm_handle);
A DREADME.md161 void *dm_handle = NULL;
177 report_2_cloud(dm_handle); //每隔3s检测是否有温湿度变化检测
184 void report_2_cloud(void *dm_handle)
190 printf("mqtt status :%d %p\r\n",mqtt_status,dm_handle);
201 demo_send_property_post(dm_handle, property_payload);
208 demo_send_property_post(dm_handle, property_payload);
/AliOS-Things-master/solutions/linksdk_demo/
A Ddata_model_basic_demo.c254 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()
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()
[all …]
A DREADME.md157 aiot_dm_setopt(dm_handle, AIOT_DMOPT_RECV_HANDLER, (void *)demo_dm_recv_handler);
165 static void demo_dm_recv_handler(void *dm_handle, const aiot_dm_recv_t *recv, void *userdata)
186 int32_t res = aiot_dm_send(dm_handle, &msg);
231 demo_send_property_post(dm_handle, "{\"LightSwitch\": 0}");
/AliOS-Things-master/solutions/auto_demo/
A Ddata_model_basic_demo.c280 int32_t demo_send_property_post(void *dm_handle, char *params) in demo_send_property_post() argument
288 return aiot_dm_send(dm_handle, &msg); in demo_send_property_post()
301 return aiot_dm_send(dm_handle, &msg); in demo_send_event_post()
305 int32_t demo_send_get_desred_requset(void *dm_handle) in demo_send_get_desred_requset() argument
313 return aiot_dm_send(dm_handle, &msg); in demo_send_get_desred_requset()
317 int32_t demo_send_delete_desred_requset(void *dm_handle) in demo_send_delete_desred_requset() argument
325 return aiot_dm_send(dm_handle, &msg); in demo_send_delete_desred_requset()
332 void *dm_handle = NULL; in demo_main() local
381 dm_handle = aiot_dm_init(); in demo_main()
382 if (dm_handle == NULL) { in demo_main()
[all …]
/AliOS-Things-master/components/ble_netconfig/
A Dblecfg_linksdk.c269 aiot_dm_send(dm_handle, &msg); in BleCfg_led_update()
272 aiot_dm_send(dm_handle, &msg); in BleCfg_led_update()
275 aiot_dm_send(dm_handle, &msg); in BleCfg_led_update()
278 aiot_dm_send(dm_handle, &msg); in BleCfg_led_update()
281 aiot_dm_send(dm_handle, &msg); in BleCfg_led_update()
284 aiot_dm_send(dm_handle, &msg); in BleCfg_led_update()
414 BleCfg_led_update(dm_handle); in BleCfg_dm_recv_handler()
569 void *dm_handle = NULL; in BleCfg_linksdk_main() local
613 dm_handle = aiot_dm_init(); in BleCfg_linksdk_main()
614 if (dm_handle == NULL) { in BleCfg_linksdk_main()
[all …]
/AliOS-Things-master/solutions/audio_demo/
A Ddata_model_basic_demo.c346 int32_t demo_send_property_post(void *dm_handle, char *params) in demo_send_property_post() argument
354 return aiot_dm_send(dm_handle, &msg); in demo_send_property_post()
367 return aiot_dm_send(dm_handle, &msg); in demo_send_event_post()
371 int32_t demo_send_get_desred_requset(void *dm_handle) in demo_send_get_desred_requset() argument
379 return aiot_dm_send(dm_handle, &msg); in demo_send_get_desred_requset()
383 int32_t demo_send_delete_desred_requset(void *dm_handle) in demo_send_delete_desred_requset() argument
391 return aiot_dm_send(dm_handle, &msg); in demo_send_delete_desred_requset()
398 void *dm_handle = NULL; in demo_main() local
447 dm_handle = aiot_dm_init(); in demo_main()
448 if (dm_handle == NULL) { in demo_main()
[all …]
/AliOS-Things-master/components/py_engine/modules/aliyunIoT/
A Dmodlinkkit.c23 void *dm_handle = NULL; variable
226 int32_t res = aiot_dm_send(dm_handle, &msg); in demo_dm_recv_handler()
359 int32_t demo_send_property_post(void *dm_handle, char *params) in demo_send_property_post() argument
367 return aiot_dm_send(dm_handle, &msg); in demo_send_property_post()
380 return aiot_dm_send(dm_handle, &msg); in demo_send_event_post()
481 dm_handle = aiot_dm_init(); in linkkit_init()
482 if (dm_handle == NULL) { in linkkit_init()
487 aiot_dm_setopt(dm_handle, AIOT_DMOPT_MQTT_HANDLE, mqtt_handle); in linkkit_init()
489 aiot_dm_setopt(dm_handle, AIOT_DMOPT_RECV_HANDLER, in linkkit_init()
583 size_t ret = demo_send_property_post(dm_handle, payload); in post_property()
[all …]
A Dmodule_aiot.h155 void *dm_handle; member
217 int32_t pyamp_aiot_app_send_property_post(void *dm_handle, char *params);
220 int32_t pyamp_aiot_app_send_event_post(void *dm_handle, char *event_id,
A Dmodule_aiot_mqtt.c209 int32_t aiot_app_send_rawdata_post(void *dm_handle, char *data, int32_t data_len) in aiot_app_send_rawdata_post() argument
217 return aiot_dm_send(dm_handle, &msg); in aiot_app_send_rawdata_post()
222 int32_t pyamp_aiot_app_send_property_post(void *dm_handle, char *params) in pyamp_aiot_app_send_property_post() argument
230 return aiot_dm_send(dm_handle, &msg); in pyamp_aiot_app_send_property_post()
234 int32_t pyamp_aiot_app_send_event_post(void *dm_handle, char *event_id, in pyamp_aiot_app_send_event_post() argument
244 return aiot_dm_send(dm_handle, &msg); in pyamp_aiot_app_send_event_post()
A Dmodule_aiot_device.c280 static void aiot_app_dm_recv_handler(void *dm_handle, in aiot_app_dm_recv_handler() argument
576 iot_device_handle->dm_handle = aiot_dm_init(); in aiot_device_connect()
577 if (iot_device_handle->dm_handle == NULL) { in aiot_device_connect()
585 aiot_dm_setopt(iot_device_handle->dm_handle, AIOT_DMOPT_MQTT_HANDLE, in aiot_device_connect()
588 aiot_dm_setopt(iot_device_handle->dm_handle, AIOT_DMOPT_RECV_HANDLER, in aiot_device_connect()
591 aiot_dm_setopt(iot_device_handle->dm_handle, AIOT_DMOPT_USERDATA, in aiot_device_connect()
657 if (self->iot_device_handle->dm_handle == NULL) in aiot_postRaw()
660 res = aiot_app_send_rawdata_post(self->iot_device_handle->dm_handle, bufinfo.buf, bufinfo.len); in aiot_postRaw()
786 self->iot_device_handle->dm_handle, event_id, event_payload); in aiot_postEvent()
824 if (self->iot_device_handle->dm_handle == NULL) { in aiot_postProps()
[all …]
/AliOS-Things-master/solutions/ucloud_ai_demo/
A Dlinkkit_event.c119 static void linkkit_dm_recv_handler(void *dm_handle, const aiot_dm_recv_t *recv, void *userdata) in linkkit_dm_recv_handler() argument
262 int32_t linkkit_send_property_post(void *dm_handle, char *params) in linkkit_send_property_post() argument
270 return aiot_dm_send(dm_handle, &msg); in linkkit_send_property_post()
274 int32_t linkkit_send_event_post(void *dm_handle, char *event_id, char *params) in linkkit_send_event_post() argument
283 return aiot_dm_send(dm_handle, &msg); in linkkit_send_event_post()
287 int32_t linkkit_send_get_desred_requset(void *dm_handle) in linkkit_send_get_desred_requset() argument
295 return aiot_dm_send(dm_handle, &msg); in linkkit_send_get_desred_requset()
299 int32_t linkkit_send_delete_desred_requset(void *dm_handle) in linkkit_send_delete_desred_requset() argument
307 return aiot_dm_send(dm_handle, &msg); in linkkit_send_delete_desred_requset()
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/advanced/aiot/
A Dmodule_aiot.h145 void *dm_handle; member
154 void *dm_handle; member
207 int32_t aiot_app_send_property_post(void *dm_handle, char *params);
210 int32_t aiot_app_send_event_post(void *dm_handle, char *event_id, char *params);
A Dmodule_aiot_mqtt.c183 int32_t aiot_app_send_property_post(void *dm_handle, char *params) in aiot_app_send_property_post() argument
191 return aiot_dm_send(dm_handle, &msg); in aiot_app_send_property_post()
195 int32_t aiot_app_send_event_post(void *dm_handle, char *event_id, char *params) in aiot_app_send_event_post() argument
204 return aiot_dm_send(dm_handle, &msg); in aiot_app_send_event_post()
A Dmodule_aiot_device.c206 static void aiot_app_dm_recv_handler(void *dm_handle, const aiot_dm_recv_t *recv, void *userdata) in aiot_app_dm_recv_handler() argument
468 iot_device_handle->dm_handle = aiot_dm_init(); in aiot_device_connect()
469 if (iot_device_handle->dm_handle == NULL) { in aiot_device_connect()
477 …aiot_dm_setopt(iot_device_handle->dm_handle, AIOT_DMOPT_MQTT_HANDLE, iot_device_handle->mqtt_handl… in aiot_device_connect()
479 …aiot_dm_setopt(iot_device_handle->dm_handle, AIOT_DMOPT_RECV_HANDLER, (void *)aiot_app_dm_recv_han… in aiot_device_connect()
481 aiot_dm_setopt(iot_device_handle->dm_handle, AIOT_DMOPT_USERDATA, iot_device_handle); in aiot_device_connect()
650 res = aiot_app_send_event_post(iot_device_handle->dm_handle, event_id, event_payload); in native_aiot_postEvent()
675 res = aiot_app_send_property_post(iot_device_handle->dm_handle, params); in native_aiot_postProps()
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/advanced/aiot/
A Dmodule_aiot.h137 void *dm_handle; member
146 void *dm_handle; member
203 int32_t aiot_app_send_property_post(void *dm_handle, char *params);
206 int32_t aiot_app_send_event_post(void *dm_handle, char *event_id, char *params);
A Dmodule_aiot_mqtt.c204 int32_t aiot_app_send_property_post(void *dm_handle, char *params) in aiot_app_send_property_post() argument
212 return aiot_dm_send(dm_handle, &msg); in aiot_app_send_property_post()
216 int32_t aiot_app_send_event_post(void *dm_handle, char *event_id, char *params) in aiot_app_send_event_post() argument
225 return aiot_dm_send(dm_handle, &msg); in aiot_app_send_event_post()
/AliOS-Things-master/solutions/rfid_demo/
A Drfid_demo.c113 static void demo_dm_recv_handler(void *dm_handle, const aiot_dm_recv_t *recv, void *userdata) in demo_dm_recv_handler() argument
256 int32_t demo_send_property_post(void *dm_handle, char *params) in demo_send_property_post() argument
264 return aiot_dm_send(dm_handle, &msg); in demo_send_property_post()
273 int32_t demo_send_event_post(void *dm_handle, char *event_id, char *params) in demo_send_event_post() argument
282 return aiot_dm_send(dm_handle, &msg); in demo_send_event_post()
288 void *dm_handle = NULL; in demo_main() local
/AliOS-Things-master/components/sensor/example/
A Dsensor_cloud_demo.c54 void sensor_cloud_test_start(void *dm_handle) in sensor_cloud_test_start() argument
73 ret = demo_send_property_post(dm_handle, (char *)param); in sensor_cloud_test_start()
91 ret = demo_send_property_post(dm_handle, (char *)param); in sensor_cloud_test_start()
/AliOS-Things-master/components/sensor/
A DREADME.md185 extern void sensor_cloud_test_start(void *dm_handle);
203 extern void sensor_cloud_test_start(void *dm_handle);
211 // demo_send_property_post(dm_handle, "{\"LightSwitch\": 0}");
212 // demo_send_event_post(dm_handle, "Error", "{\"ErrorCode\": 0}");
214 sensor_cloud_test_start(dm_handle);
/AliOS-Things-master/components/py_engine/external/app_mgr/
A Dapp_message.c381 static int32_t location_event_post(void *dm_handle, char *event_id, char *params) in location_event_post() argument
390 return aiot_dm_send(dm_handle, &msg); in location_event_post()
396 void *dm_handle = NULL; in pyamp_location_service() local
439 dm_handle = aiot_dm_init(); in pyamp_location_service()
440 if (dm_handle == NULL) { in pyamp_location_service()
446 aiot_dm_setopt(dm_handle, AIOT_DMOPT_MQTT_HANDLE, mqtt_handle); in pyamp_location_service()
450 location_event_post(dm_handle, lbs_event_id, "{\"ErrorCode\": 0}"); in pyamp_location_service()
/AliOS-Things-master/documentation/quickstart/
A Dhaas100_quick_start_cloud.md117 aiot_dm_setopt(dm_handle, AIOT_DMOPT_RECV_HANDLER, (void *)demo_dm_recv_handler);
125 static void demo_dm_recv_handler(void *dm_handle, const aiot_dm_recv_t *recv, void *userdata)
146 int32_t res = aiot_dm_send(dm_handle, &msg);
198 demo_send_property_post(dm_handle, "{\"LightSwitch\": 0}");

Completed in 30 milliseconds

12