/AliOS-Things-master/components/linksdk/components/data-model/ |
A D | aiot_dm_api.c | 473 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 D | data_model_basic_demo.c | 268 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 D | flower_app.c | 175 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 D | flower_app.h | 9 void report_2_cloud(void *dm_handle);
|
A D | README.md | 161 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 D | data_model_basic_demo.c | 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() 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 D | README.md | 157 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 D | data_model_basic_demo.c | 280 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 D | blecfg_linksdk.c | 269 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 D | data_model_basic_demo.c | 346 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 D | modlinkkit.c | 23 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 D | module_aiot.h | 155 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 D | module_aiot_mqtt.c | 209 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 D | module_aiot_device.c | 280 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 D | linkkit_event.c | 119 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 D | module_aiot.h | 145 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 D | module_aiot_mqtt.c | 183 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 D | module_aiot_device.c | 206 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 D | module_aiot.h | 137 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 D | module_aiot_mqtt.c | 204 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 D | rfid_demo.c | 113 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 D | sensor_cloud_demo.c | 54 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 D | README.md | 185 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 D | app_message.c | 381 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 D | haas100_quick_start_cloud.md | 117 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}");
|