I have an android 11 and I am sending data too an esp32. The old extension Version 2.0 works for long strings but the updated version 08-'20 doesn't send it complete. I have maked also an MTU request and gives me positive feedback but only sends 20bytes.
The two code sets are different - if the earlier version code worked, why have you changed the MTU in the new version? Note that both devices need to be able to handle the larger data stream.
There is apparently nothing in the code that tests the actual string byte size - so the string could exceed 128 bytes.....
The very latest version of the extension is 20201223, but it is awaiting release.
Well idd, something strange happened. First the old version didn't send the long string. I update to get rid of that problem and it worked, but now it the opposite. After changing from BLE to NimBLE in the arduino it appeared it didn't work anymore. So I looked what the problem was. It surely not the program from the esp. So I looked in what I changed and I tried the old extension back and it worked. I checked with two shetches and I get the same input. for me the latest extension is 08-'20 on the link.
I did a look-up first and watched al the topics about it but it didn't work for me. It's not a serial Bluetooth anymore, it is a secure Bluetooth server that I'm working on.
Ater a night... this morning I checked again my latest version in the ais and now it is Extension Version: 20181124 and version 2.0... I'am sure I imported the 08-'20 version. I have it in my downloads and I checked it yesterday.
Thanks for the reply. I know that. I just maked a new project without updating 2 versions up in once, but I still cann't recieve the whole string on the other side without doing an MTU request in the app.
Dear, I tried it but I it still too short. I have made a new project and I recieve this on the other end.
�Starting NimBLE Server
Advertising Started
Connected
Server PassKeyRequest
Starting BLE work!
[This is a long string
Disconnected
Connected
Starting BLE work!
[This is a long string
Disconnected
This is the shetch I made. It's not finished, but it suppose to work on a esp32 lua after installing the board. It probebly will work on other boards to.
Well, the most important part we cannot see, what happens in the loop() to receive strings? However, the Characteristic UUID has not been defined for read, only write?
They are handled in callbacks, and my code calls further on the library. It simular like and interrupt. When something is received it runs it. And yeah it is strange that it is write, I nothest that to. I will test it with read. I let you know.
I have done it on an a different esp32 and put a delay in the loop to get more breath for the esp. It diden't change the outcome. On which SDK is this extension based?