40 if(
nullptr != jAddressType ) {
43 return BDAddressType::BDADDR_LE_PUBLIC;
46 return BDAddressType::BDADDR_LE_RANDOM;
49 return BDAddressType::BDADDR_BREDR;
52 switch( bdAddressType ) {
53 case BDAddressType::BDADDR_LE_PUBLIC:
55 case BDAddressType::BDADDR_LE_RANDOM:
57 case BDAddressType::BDADDR_BREDR:
BDAddressType
BT Core Spec v5.2: Vol 3, Part C Generic Access Profile (GAP): 15.1.1.1 Public Bluetooth address.
jstring from_string_to_jstring(JNIEnv *env, const std::string &str)
std::string from_jstring_to_string(JNIEnv *env, jstring str)
static std::string jAddressTypePublic("public")
static std::string jAddressTypeRandom("random")
static std::string jStringEmpty("")
BDAddressType fromJavaAdressTypeToBDAddressType(JNIEnv *env, jstring jAddressType)
jstring fromBDAddressTypeToJavaAddressType(JNIEnv *env, BDAddressType bdAddressType)