Last Updated on : 2024-09-12 01:52:59download
This topic describes how to develop 4G capabilities for IP cameras (IPCs) that use the 4G module.
Before initializing tuya_ipc_init_sdk, ensure a right value is assigned to mobile_network_card in TUYA_IPC_ENV_VAR_T.
typedef struct {
TUYA_IPC_MOBILE_CARD_TYPE card_type; /// Type of 4G mobile network card
TUYA_IPC_MOBILE_CARD_VENDOR_CODE vendor_code; /// Vendor code of 4G mobile network card
} TUYA_IPC_MOBILE_NETWORK_CARD_T;
vendor_code represents the code of the vendor. If you are unsure of it, set it to 0.
After activating the device and bringing it online, call the following API to report the ICCID and IMEI:
OPERATE_RET tuya_ipc_upload_iccid(CHAR_T *iccid);
OPERATE_RET tuya_ipc_upload_imei(CHAR_T *imei);
For more information, see Keep-Alive and Wake-Up in Low Power.
It is recommended to scan the QR code to pair a 4G device. For more information, see App Scanning IPC’s QR Code for Activation and Binding.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback