Reading the MTU?
See original GitHub issueIs there currently a way to detect the current MTU? In iOS CBPeripheral
s 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:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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.