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')))
+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
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')])
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"
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);
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");
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);
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");
%{!?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
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} \