/** * @file cm_lbs.h * @brief LBS接口 * @copyright Copyright © 2021 China Mobile IOT. All rights reserved. * @author By zyf * @date 2022/08/31 * * @defgroup lbs * @ingroup LBS * @ NOTE:lbs 定位时会连接定位服务器,需要使用http连接,因此调用 * @ int32_t cm_lbs_location(cm_lbs_callback cb,void *cb_arg); * @ 函数期间会占用1路http,定位完成之后会释放该路http * @ 目前LBS支持的型号有:ML307A-DCLN/ DSLN/GSLN * @ 目前LBS支持的型号有:ML305A-DC/DS * @{ */ #ifndef __CM_LBS_H__ #define __CM_LBS_H__ /**************************************************************************** * Included Files ****************************************************************************/ #include /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ #define CM_LBS_NVCONFIG_ONEOSPOS_PIDLEN (64) #define CM_LBS_NVCONFIG_AMAP_KEYLEN (128) #define CM_LBS_NVCONFIG_AMAP_SIGNALEN (128) /**************************************************************************** * Public Types ****************************************************************************/ /**LBS平台枚举*/ typedef enum { CM_LBS_PLAT_START, CM_LBS_PLAT_AMAP10 = 10, /*!<高德定位1.0*/ CM_LBS_PLAT_AMAP20 = 11, /*!<高德定位2.0*/ CM_LBS_PLAT_MANTU = 20, /*!<漫图定位,不支持*/ CM_LBS_PLAT_BAIDU = 30, /*!<百度定位,不支持*/ CM_LBS_PLAT_ONEOSPOS= 40, /*!