From 6f2dc73bb6bd5ff48cb4a2e77e9e7b6a93828902 Mon Sep 17 00:00:00 2001 From: yy1717 <fctom1215@outlook.com> Date: 星期二, 07 一月 2020 19:21:39 +0800 Subject: [PATCH] 修改进程间接口,统一为foo(int, string) --- lib/src/main/cpp/rtk_platform/platform.h | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/lib/src/main/cpp/rtk_platform/platform.h b/lib/src/main/cpp/rtk_platform/platform.h index 84e70cf..736f9d2 100644 --- a/lib/src/main/cpp/rtk_platform/platform.h +++ b/lib/src/main/cpp/rtk_platform/platform.h @@ -12,7 +12,23 @@ #define RTK_UPDATE_EVT 0x0010 #define GPS_UPDATE_EVT 0x0020 +typedef struct { + char domain_name[32]; + int port; + uint16_t province; + uint16_t city; + char device_model[21]; + char device_sn[17]; + char imei[16]; + char phone[17]; + char password[17]; + int registered; + int rtk_interval; +} rtk_platform_cfg_t; + void InitPlatform(const uint8_t *phone, const char *domain_name, int port); +void ConfigPlatform(const rtk_platform_cfg_t *p); + void PlatformStatusChanged(uint32_t event); int WritePlatform(const uint8_t * buf, uint32_t len); void DeviceRegisterCallback(uint8_t res, const uint8_t *data, int length); -- Gitblit v1.8.0