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

How does TuyaOS report the MCU version number?

Last Updated on2025-09-29 01:27:30
Can be accessed through the interface below
1. Update subsidiary firmware version information
OPERATE_RETtuya_iot_dev_update_attachs(UINT_Tattr_num, GW_ATTACH_ATTR_T*attrs);
2. Set subsidiary firmware version information
OPERATE_RETtuya_iot_dev_set_attach_attr(GW_PERMIT_DEV_TP_Ttp, GW_ATTACH_ATTR_T*attr);
GW_ATTACH_ATTR_TInitialization example is as follows:
UINT_T attr_num = 3; GW_ATTACH_ATTR_T attr[3] = { { .tp = DEV_NM_NOT_ATH_SNGL, // MCU module .ver = "1.0.0" }, { .tp = DEV_BLE_SNGL, // Bluetooth module .ver = "2.0.0" }, { .tp = DEV_ATTACH_MOD_1, // Voice module (custom tp, needs to be consistent with IoT frontend configuration) .ver = "3.0.0" } };

Click for services and help

Help Center