TencentCloud / tencentcloud-iot-explorer-sdk-embedded-c

SDK for embedded system connect and comunicate with Tencent Cloud IoT Explorer Platform
Other
113 stars 52 forks source link

移植到ESP32C3,密码错误时程序运行异常 #21

Closed huhaifan closed 7 months ago

huhaifan commented 1 year ago

定位到IOT_Template_Construct函数,mqtt_client声明提升后,修改End部分后程序可以正常运行

    End:
        if (pTemplate)
        {
            if (mqtt_client != NULL)
            {
                IOT_Template_Destroy(pTemplate);
            }
            HAL_Free(pTemplate);
            pTemplate = NULL;
        }
        return NULL;
huhaifan commented 1 year ago

22