question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there currently a way to detect the current MTU? In iOS CBPeripherals have a function called maximumWriteValueLength which can be used for this purpose, but I could not find anything related to that in the documentation.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
juhanilammacommented, Oct 27, 2017

To me it looks like:

On 0.6.4 when cancelDeviceConnection() is called on BleModule.java and promise is being resolved successfully: promise.resolve is called by argument “new Device(device, null).toJSObject(null)” => So the given new device object is initialized with null connection.

New device is then called “toJSObject()”, which executes line: “result.putInt(Metadata.MTU, connection.getMtu());”

This causes NPE as the connection is null and connection.getMtu() is called.

Could you please check this if I read the code correctly.

0reactions
Cierpliwycommented, Nov 30, 2017

Closing this issue as changing MTU was implemented and NPE fixed in 0.6.5. Please open another issue for further discussion or just ask us on Gitter.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reading With Authors: Reading as Inquiry Turns 10
Michigan Tech's summer reading program, Reading as Inquiry, began in 2004. Since then, first-year students have been asked to read a common book...
Read more >
Determining and setting up the correct MTU size
The Maximum Transmission Unit (MTU) feature of your Linksys router is an advanced configuration that allows you to determine the largest data size...
Read more >
Reading the MTU? · Issue #129 · dotintent/react-native-ble- ...
4 added mtu property to Device object which allows you to read it after device is connected with requestMTU option specified or by...
Read more >
What Is MTU & MSS | Fragmentation Explained
MTU is the largest packet or frame size, specified in octets (eight-bit bytes) that can be sent in a packet- or frame-based network....
Read more >
READy MTU | Heat & Cooling|Water
View all the benefits, features and specifications of our READy MTU available for Heat ... Supports Data log and fallback reading; READy MTU...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found