}
}
-BluetoothGATTClientService::BluetoothGATTClientService(BluetoothInstance& instance) : instance_(instance) {
+BluetoothGATTClientService::BluetoothGATTClientService(BluetoothInstance& instance)
+ : instance_(instance) {
ScopeLogger();
}
}
PlatformResult BluetoothGATTClientService::GetSpecifiedGATTClient(const std::string& address,
- const UUID& uuid,
- picojson::object* result) {
+ const UUID& uuid,
+ picojson::object* result) {
ScopeLogger();
bt_gatt_client_h client = GetGattClient(address);
}
}
-PlatformResult BluetoothGATTClientService::GetServicesHelper(bt_gatt_h handle, const std::string& address,
- picojson::array* array) {
+PlatformResult BluetoothGATTClientService::GetServicesHelper(bt_gatt_h handle,
+ const std::string& address,
+ picojson::array* array) {
ScopeLogger();
if (!IsStillConnected(address)) {
return PlatformResult(ErrorCode::NO_ERROR);
}
-void BluetoothGATTClientService::GetCharacteristics(const picojson::value& args, picojson::object& out) {
+void BluetoothGATTClientService::GetCharacteristics(const picojson::value& args,
+ picojson::object& out) {
ScopeLogger();
bt_gatt_h handle = (bt_gatt_h) static_cast<long>(args.get("handle").get<double>());
}
PlatformResult BluetoothGATTClientService::GetCharacteristicsHelper(bt_gatt_h handle,
- const std::string& address,
- picojson::array* array) {
+ const std::string& address,
+ picojson::array* array) {
ScopeLogger();
if (!IsStillConnected(address)) {
}
void BluetoothGATTClientService::AddValueChangeListener(const picojson::value& args,
- picojson::object& out) {
+ picojson::object& out) {
ScopeLogger();
const auto& address = args.get("address").get<std::string>();
if (!IsStillConnected(address)) {
}
void BluetoothGATTClientService::RemoveValueChangeListener(const picojson::value& args,
- picojson::object& out) {
+ picojson::object& out) {
ScopeLogger();
const auto& address = args.get("address").get<std::string>();
if (!IsStillConnected(address)) {
}
common::PlatformResult BluetoothGATTClientService::GetServiceAllUuids(const std::string& address,
- picojson::array* array) {
+ picojson::array* array) {
ScopeLogger();
bt_gatt_client_h client = GetGattClient(address);
}
void BluetoothGATTClientService::OnCharacteristicValueChanged(bt_gatt_h characteristic, char* value,
- int length, void* user_data) {
+ int length, void* user_data) {
ScopeLogger("characteristic: [%p], len: [%d], user_data: [%p]", characteristic, length,
user_data);