s
yy1717
2020-01-10 c64da51ae481dfc2a25e5a6e39bb94f22d65428a
lib/src/main/cpp/native-lib.cpp
@@ -25,6 +25,8 @@
const int RTK_PLATFORM_PORT = 12125;
const uint8_t phone[] = {0x20,0x19,0x10,0x15,0x00,0x00,0x00,0x01};
static void SendBootIndicate(union sigval sig);
int DESEncrypt(const uint8_t *key, int key_length,
        const uint8_t *plaintext, int plaintext_length,
        uint8_t **ciphertext)
@@ -234,13 +236,18 @@
    // 不能直接赋值(g_obj = ojb)
    sg_obj = env->NewGlobalRef(thiz);
    MA_NdkStart();
    AppTimer_Init();
    ConfigMCU();
    DriverTestInit();
    ConfigRTKModule();
    InitPlatform(phone, RTK_PLATFORM_IP, RTK_PLATFORM_PORT);
    AppTimer_add(SendBootIndicate, 500);
}
static void SendBootIndicate(union sigval sig) {
    AppTimer_delete(SendBootIndicate);
    MA_NdkStart();
}
extern "C"