From 905f88c976c27c8d30e14871e916be62b1c46efe Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期五, 20 三月 2026 15:35:58 +0800
Subject: [PATCH] 2026年03月20日15:35:56
---
app/src/main/java/com/hdl/photovoltaic/utils/BleWifiConfiguratorUtils.java | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/app/src/main/java/com/hdl/photovoltaic/utils/BleWifiConfiguratorUtils.java b/app/src/main/java/com/hdl/photovoltaic/utils/BleWifiConfiguratorUtils.java
index 3ad54ca..de3d49f 100644
--- a/app/src/main/java/com/hdl/photovoltaic/utils/BleWifiConfiguratorUtils.java
+++ b/app/src/main/java/com/hdl/photovoltaic/utils/BleWifiConfiguratorUtils.java
@@ -372,6 +372,7 @@
if (connectListener != null) {
callbackHandler.post(() -> connectListener.onDisconnected());
}
+ Log.d(TAG, "Connected to GATT server, onDisconnected");
}//
}
@@ -520,7 +521,7 @@
// 绗� 4 姝ワ細鍐欏叆鎻忚堪绗﹀埌璁惧
//鈫� 鍙湁鍐欏叆鎴愬姛鍚庯紝鍛婅瘔璁惧绔紝璁惧鎵嶄細寮�濮嬪彂閫侀�氱煡锛�
bluetoothGatt.writeDescriptor(descriptor);
- Log.e(TAG, "writeDescriptor success");
+ Log.d(TAG, "writeDescriptor success");
}
}
}
@@ -542,7 +543,7 @@
*/
@RequiresPermission(Manifest.permission.BLUETOOTH_CONNECT)
public void writeCredentials(String data, WriteListener listener) {
- Log.e(TAG, "writeCredentials :鍑嗗鍐欏叆");
+ Log.d(TAG, "writeCredentials :鍑嗗鍐欏叆");
this.writeListener = listener;
if (!isConnected || characteristic == null) {
if (listener != null) {
@@ -556,7 +557,7 @@
@RequiresPermission(Manifest.permission.BLUETOOTH_CONNECT)
private void writeCharacteristic(BluetoothGattCharacteristic characteristic, String value) {
- Log.e(TAG, "writeCharacteristic :寮�濮嬪啓鍏�");
+ Log.d(TAG, "writeCharacteristic :寮�濮嬪啓鍏�");
if (!this.getMissingPermissions().isEmpty()) {
callbackHandler.post(() -> this.writeListener.onWriteFailed(-2)); // 娌℃湁鏉冮檺
return;
@@ -564,7 +565,7 @@
characteristic.setValue(value.getBytes(StandardCharsets.UTF_8));
characteristic.setWriteType(BluetoothGattCharacteristic.WRITE_TYPE_DEFAULT);
bluetoothGatt.writeCharacteristic(characteristic);
- Log.e(TAG, "writeCharacteristic :寮�濮嬪畬鎴�");
+ Log.d(TAG, "writeCharacteristic :寮�濮嬪畬鎴�");
}
// ==================== 宸ュ叿鏂规硶 ====================
--
Gitblit v1.8.0