[CONPRO-1356]Calling GetMtuSize for Tizen 01/194301/1 accepted/tizen/5.0/unified/20181203.061734 submit/tizen_5.0/20181203.021553
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 3 Dec 2018 02:14:19 +0000 (11:14 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 3 Dec 2018 02:14:19 +0000 (11:14 +0900)
Change-Id: I901ea18d20b63127632983f0715055052236a78d
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
resource/csdk/connectivity/src/bt_le_adapter/caleadapter.c [changed mode: 0755->0644]
resource/csdk/connectivity/src/bt_le_adapter/tizen/caleclient.c

old mode 100755 (executable)
new mode 100644 (file)
index 94b4f6e..2a6c02d
@@ -1180,8 +1180,11 @@ static void CALEServerSendDataThread(void *threadData)
         return;
     }
 
-#if defined(__ANDROID__)
+#if defined(__TIZEN__) || defined(__ANDROID__)
     // get MTU size
+    OIC_LOG_V(INFO, CALEADAPTER_TAG, "Get MTU size using API");
+
+
     g_mtuSize = CALEServerGetMtuSize(bleData->remoteEndpoint->addr);
 #endif
     OIC_LOG_V(INFO, CALEADAPTER_TAG, "MTU size [%d]", g_mtuSize);
index 87c47b8..6884a8e 100644 (file)
@@ -1539,3 +1539,36 @@ exit:
     OIC_LOG(DEBUG, TAG, "OUT ");
     return CA_STATUS_OK;
 }
+
+bool CALEClientIsConnected(const char* address)
+{
+    (void)address;
+    //@Todo
+    return true;
+}
+
+uint16_t CALEClientGetMtuSize(const char* address)
+{
+    VERIFY_NON_NULL_RET(address, TAG, "address is null", CA_DEFAULT_BLE_MTU_SIZE);
+    //@Todo
+    //it should be implemented after update Tizen 3.0
+    return CA_DEFAULT_BLE_MTU_SIZE;
+}
+
+CAResult_t CALEClientSetMtuSize(const char* address, uint16_t mtuSize)
+{
+    (void)mtuSize;
+
+    VERIFY_NON_NULL(address, TAG, "address is null");
+    //@Todo
+    //it should be implemented after update Tizen 3.0
+    return CA_NOT_SUPPORTED;
+}
+
+CAResult_t CALEClientSendNegotiationMessage(const char* address)
+{
+    OIC_LOG_V(DEBUG, TAG, "CALEClientSendNegotiationMessage(%s)", address);
+    //@Todo
+    //it will be implemented when tizen public 3.0 is released.
+    return CA_NOT_SUPPORTED;
+}
\ No newline at end of file