This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Android nrf Blinky Error is E/BleManager: onMtuChanged error: . What it means mtuchanged error and the status number ?

I have modified this project by adding a NewActivity file and also a button in BlinkyActivity. When the user clicks the button will navigate to NewActivity.

A and B situation will refer to the same example below.

A - mBlinkyManager = new BleRepository(getApplication());

B - mBlinkyManager = BleRepository.getBlinkyManager(getApplication());

1 .E/BleManager: onMtuChanged error & Connection

a ) The problem when using your example is E/BleManager: onMtuChanged error: 4, mtu: 247. This time when instantiating the object in the ViewModel the connection is stable. It will not disconnected automatically.

b) The problem when using singleton only is E/BleManager: onMtuChanged error: 4, mtu and sometimes the connection is not stable. It will be lost then it will disconnected automatically.

2. Back pressed from NewActivity to BlinkyActivty

a) When back pressed the LED1 is still yellow light. It means the connection still there.

b) When back pressed the LED1 will turn to blink yellow light. It means the connection already disconnected automatically.

3. So how to solve my problem regarding the E/BleManager: onMtuChanged error: ??

Parents Reply Children
No Data
Related