summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild_common/SConscript1
-rwxr-xr-xpackaging/snapshot_history.txt6
-rw-r--r--resource/csdk/connectivity/src/bt_le_adapter/tizen/SConscript8
-rw-r--r--resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_mcd.c10
-rw-r--r--resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_vd.c10
-rw-r--r--tools/tizen/iotivity.spec4
6 files changed, 36 insertions, 3 deletions
diff --git a/build_common/SConscript b/build_common/SConscript
index f0322ee16..9ca277d78 100755
--- a/build_common/SConscript
+++ b/build_common/SConscript
@@ -134,6 +134,7 @@ help_vars.Add(EnumVariable('BLE_CUSTOM_ADV', 'Build with CUSTOM Advertisement',
help_vars.Add(EnumVariable('BLE_DIVISION', 'BLE Build with division code', 'OFF', allowed_values=('OFF', 'MCD', 'VD')))
help_vars.Add(EnumVariable('BLE_TIZEN_30', 'Build with tizen 3.0 BLE api', 'False', allowed_values=('True', 'False')))
help_vars.Add(EnumVariable('BLE_TIZEN_40', 'Build with tizen 4.0 BLE api', 'False', allowed_values=('True', 'False')))
+help_vars.Add(EnumVariable('BLE_TIZEN_55', 'Build with tizen 5.5 BLE api', 'False', allowed_values=('True', 'False')))
help_vars.Add(PathVariable('TIZENRT_OS_DIR', 'Absolute Path to TizenRT OS directory', None, PathVariable.PathAccept))
help_vars.Add(EnumVariable('PLATFORM_TLS', 'Use platform tls instead of local mbedtls', '0', allowed_values=('0', '1')))
help_vars.Add(EnumVariable('OIC_SUPPORT_TIZEN_TRACE', 'Tizen Trace(T-trace) api availability', 'False', allowed_values=('True', 'False')))
diff --git a/packaging/snapshot_history.txt b/packaging/snapshot_history.txt
index fbb81fd88..1d339095d 100755
--- a/packaging/snapshot_history.txt
+++ b/packaging/snapshot_history.txt
@@ -1,3 +1,9 @@
+http://suprem.sec.samsung.net/jira/browse/CONPRO-1461
+
+commit_info_2019-07-11.txt
+
+commit_id: 6b31a4840ddceaeb699293dff833353d39901675
+---------------------------------------------------------------------------------------------------------------------------------
http://suprem.sec.samsung.net/jira/browse/CONPRO-1456
commit_info_2019-06-27.txt
diff --git a/resource/csdk/connectivity/src/bt_le_adapter/tizen/SConscript b/resource/csdk/connectivity/src/bt_le_adapter/tizen/SConscript
index 455838081..2166547ae 100644
--- a/resource/csdk/connectivity/src/bt_le_adapter/tizen/SConscript
+++ b/resource/csdk/connectivity/src/bt_le_adapter/tizen/SConscript
@@ -9,6 +9,7 @@ root_dir = os.pardir
division = env.get('BLE_DIVISION')
tizen30 = env.get('BLE_TIZEN_30')
tizen40 = env.get('BLE_TIZEN_40')
+tizen55 = env.get('BLE_TIZEN_55')
env.PrependUnique(CPPPATH = [ os.path.join(src_dir, 'tizen')])
@@ -18,7 +19,12 @@ if 'MCD' in division:
env.AppendUnique(CPPDEFINES = ['BLE_MCD'])
print "BLE for MCD"
-if tizen40 == 'True':
+if tizen55 == 'True':
+ env.AppendUnique(CPPDEFINES = ['BLE_TIZEN_30'])
+ env.AppendUnique(CPPDEFINES = ['BLE_TIZEN_40'])
+ env.AppendUnique(CPPDEFINES = ['BLE_TIZEN_55'])
+ print "Build using Tizen 5.5 BLE API"
+elif tizen40 == 'True':
env.AppendUnique(CPPDEFINES = ['BLE_TIZEN_30'])
env.AppendUnique(CPPDEFINES = ['BLE_TIZEN_40'])
print "Build using Tizen 4.0 BLE API"
diff --git a/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_mcd.c b/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_mcd.c
index 5c36a0324..9f3791fde 100644
--- a/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_mcd.c
+++ b/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_mcd.c
@@ -1185,6 +1185,15 @@ uint16_t CALEServerGetMtuSize(const char* address)
unsigned int mtu = CA_DEFAULT_BLE_MTU_SIZE;
int ret = 0;
+#ifdef BLE_TIZEN_55
+ ret = bt_gatt_server_get_device_mtu(address, &mtu);
+ if (0 != ret)
+ {
+ OIC_LOG_V(ERROR, TAG,
+ "bt_gatt_server_get_device_mtu failed with return [%s]", CALEGetErrorMsg(ret));
+ return CA_DEFAULT_BLE_MTU_SIZE;
+ }
+#else
#ifdef BLE_TIZEN_40
bt_gatt_client_h client = NULL;
ret = bt_gatt_client_create(address, &client);
@@ -1219,6 +1228,7 @@ uint16_t CALEServerGetMtuSize(const char* address)
return CA_DEFAULT_BLE_MTU_SIZE;
}
#endif // BLE_TIZEN_40
+#endif // BLE_TIZEN_55
OIC_LOG_V(INFO, TAG, "mtu size(including header) from bt_device_get_att_mtu is %d", mtu);
OIC_LOG(DEBUG, TAG, "OUT");
diff --git a/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_vd.c b/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_vd.c
index bcfe6d41f..bcd5d0d9e 100644
--- a/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_vd.c
+++ b/resource/csdk/connectivity/src/bt_le_adapter/tizen/caleserver_vd.c
@@ -1047,6 +1047,15 @@ uint16_t CALEServerGetMtuSize(const char* address)
unsigned int mtu = CA_DEFAULT_BLE_MTU_SIZE;
int ret = 0;
+#ifdef BLE_TIZEN_55
+ ret = bt_gatt_server_get_device_mtu(address, &mtu);
+ if (0 != ret)
+ {
+ OIC_LOG_V(ERROR, TAG,
+ "bt_gatt_server_get_device_mtu failed with return [%s]", CALEGetErrorMsg(ret));
+ return CA_DEFAULT_BLE_MTU_SIZE;
+ }
+#else
#ifdef BLE_TIZEN_40
bt_gatt_client_h client = NULL;
ret = bt_gatt_client_create(address, &client);
@@ -1081,6 +1090,7 @@ uint16_t CALEServerGetMtuSize(const char* address)
return CA_DEFAULT_BLE_MTU_SIZE;
}
#endif // BLE_TIZEN_40
+#endif // BLE_TIZEN_55
OIC_LOG_V(INFO, TAG, "mtu size(including header) from bt_device_get_att_mtu is %d", mtu);
OIC_LOG(DEBUG, TAG, "OUT");
diff --git a/tools/tizen/iotivity.spec b/tools/tizen/iotivity.spec
index 46e8332f4..ea47eee1f 100644
--- a/tools/tizen/iotivity.spec
+++ b/tools/tizen/iotivity.spec
@@ -88,7 +88,7 @@ Source1002: %{name}-test.manifest
%{!?BLE_DIVISION: %define BLE_DIVISION VD}
%{!?DISABLE_BLE_SERVER: %define DISABLE_BLE_SERVER 0}
%{!?MULTIPLE_OWNER: %define MULTIPLE_OWNER 1}
-%{!?BLE_TIZEN_40: %define BLE_TIZEN_40 True}
+%{!?BLE_TIZEN_55: %define BLE_TIZEN_55 True}
BuildRequires: expat-devel
BuildRequires: python, libcurl-devel
@@ -184,7 +184,7 @@ scons %{JOB} --prefix=%{_prefix} \
RD_MODE=%{RD_MODE} \
BLE_CUSTOM_ADV=%{BLE_CUSTOM_ADV} \
BLE_DIVISION=%{BLE_DIVISION} \
- BLE_TIZEN_40=%{BLE_TIZEN_40} \
+ BLE_TIZEN_55=%{BLE_TIZEN_55}
DISABLE_BLE_SERVER=%{DISABLE_BLE_SERVER} \
MULTIPLE_OWNER=%{MULTIPLE_OWNER} \
LOG_LEVEL=%{log_level} \