4G_module/examples/aliyun/inc/cm_demo_aliyun.h

42 lines
1.6 KiB
C
Raw Permalink Normal View History

2024-09-02 17:54:29 +08:00
#ifndef __CM_DEMO_ALIYUN_H__
#define __CM_DEMO_ALIYUN_H__
#include <stdint.h>
#include <stddef.h>
/*
* 使topic名称
*/
void cm_test_aliyun(unsigned char **cmd, int len);
/**
* @brief OTA升级Demo
*
* @param void
*
* @return
* = 0 - \n
* < 0 -
*
* @details mqtt_host以及设备的product_key,device_name,device_secret,,:
* 1. ,,FOTA升级前先使用单个模组调试,;
* 2. url有效期为24小时,,,,SIM流量剩余等,;
* 3. cm_aliyun_ota_version_report接口向阿里云平台上报版本号
*/
void cm_aliyun_ota_test(unsigned char **cmd, int len);
/**
* @brief OTA版本号,OTA升级完成后向服务器上报升级后版本
*
* @param [in] ver :
*
* @return
* = 0 - \n
* < 0 -
*
* @details OTA升级完成后向服务器上报升级后版本,
*
*/
int cm_aliyun_ota_version_report(const char *ver);
#endif