1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- /*******************************************************
- * File name: gateway_defs.h
- * Author:Chongguang Li
- * Versions:1.0
- * Description:This module is to used to define the parameter and structure used in gateway.
- * History:
- * 1.Date:
- * Author:
- * Modification:
- *********************************************************/
-
- #ifndef __GATEWAY_DEFS_H__
- #define __GATEWAY_DEFS_H__
- #include "pando_types.h"
- /***平台通讯API地址***/
- #define PANDO_API_URL "http://222.175.129.194:18088"
- /***平台分配的产品KEY***/
- #define PRODUCT_KEY "4548cce95ee3097b434a1455445e108b67b40c0e38510b99225b0ddcea60548f"
- /**本地数据存储地址定义**/
- #define DATANAME_DEVICE_ID "pando_device_id"
- #define DATANAME_DEVICE_SECRET "pando_device_secret"
- #define DATANAME_DEVICE_KEY "pando_device_key"
- #define DATANAME_ACCESS_TOKEN "pando_access_token"
- #define DATANAME_ACCESS_ADDR "pando_access_addr"
- /**心跳间隔**/
- #define PANDO_KEEPALIVE_TIME 30
- /**模块类型定义**/
- #define PANDO_DEVICE_MODULE "SIM7600"
- #define PANDO_SDK_VERSION "0.0.1"
- typedef void(*gateway_callback)(int8_t result);
- #define PANDO_REGISTER_OK 0
- #define PANDO_LOGIN_OK 1
- #define PANDO_REGISTER_FAIL -1
- #define PANDO_NOT_REGISTERED -2
- #define PANDO_LOGIN_FAIL -3
- #define PANDO_ACCESS_ERR -4
- #endif
|