override fun onConnectionStateChange()

in PoC/android/app/src/main/java/com/epam/crowdresitance/bluetooth/BtScan.kt [126:136]


        override fun onConnectionStateChange(gatt: BluetoothGatt?, status: Int, newState: Int) {
            super.onConnectionStateChange(gatt, status, newState)
            if (newState == BluetoothAdapter.STATE_CONNECTED) {
                gatt?.discoverServices()
            }
            val errorCode133 = 133
            if (newState == errorCode133) {
                gatt?.close()
                issuedMac = btDevice.macAddress
            }
        }