mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-07-25 16:45:20 +00:00
wip: use subnet
This commit is contained in:
@@ -30,7 +30,7 @@ class BluetoothGattClientManager(
|
||||
companion object {
|
||||
private const val TAG = "BluetoothGattClientManager"
|
||||
// Use exact same UUIDs as iOS version
|
||||
private val SERVICE_UUID = UUID.fromString("F47B5E2D-4A9E-4C5A-9B3F-8E1D2C3A4B5C")
|
||||
private val SERVICE_UUID = UUID.fromString("F47B5E2D-4A9E-4C5A-9B3F-8E1D2C3A4B5B")
|
||||
private val CHARACTERISTIC_UUID = UUID.fromString("A1B2C3D4-E5F6-4A5B-8C9D-0E1F2A3B4C5D")
|
||||
private val DESCRIPTOR_UUID = UUID.fromString("00002902-0000-1000-8000-00805f9b34fb")
|
||||
|
||||
|
||||
@@ -48,7 +48,7 @@ class PacketProcessor(private val myPeerID: String) {
|
||||
delegate?.updatePeerLastSeen(peerID)
|
||||
|
||||
Log.d(TAG, "Processing packet type ${packet.type} from $peerID")
|
||||
|
||||
val DEBUG_MESSAGE_TYPE = MessageType.fromValue(packet.type)
|
||||
// Process based on message type (exact same logic as iOS)
|
||||
when (MessageType.fromValue(packet.type)) {
|
||||
MessageType.NOISE_HANDSHAKE_INIT -> handleNoiseHandshake(routed, 1)
|
||||
|
||||
Reference in New Issue
Block a user