English
English
简体中文
Register
Log In
English
English
简体中文
Register
Log In
Language
English
English
简体中文
Register
Log In

Does the IPC device support device-side hang-up when the doorbell is called?

Last Updated on2024-09-19 02:38:05
Yes, only video format calls are supported. It requires the device end to actively call the corresponding interface to implement. The specific implementation is as follows:
//Actively hang up
OPERATE_RET tuya_ipc_door_bell_press_accept()
{
CHAR_T data[128] = {0};
CHAR_T dev_id[GW_ID_LEN+1] = {0};
GW_CNTL_S *gw_cntl = get_gw_cntl();
strncpy(dev_id, gw_cntl->gw_if.id, GW_ID_LEN);
snprintf(data, sizeof(data), "{"type":"ac_doorbell","data":{"event":"accept","devId":"%s"}}", dev_id);
return mqc_door_bell_answer(data);
}

Click for services and help

Help Center