BluetoothLE extension 20190701 released

Thanks Evan,
Very nice code.

Btw last year I shared some of my work with Amna Greaves at MIT. I coded a sensor server for incident management that handles live and historic instrument readings. Amna’s team is compiling information on how different organizations share information. Our system shares data different ways with different organizations such as the EPA.

I’ve coded 70 instrument interfaces an I’m always researching and learning. I have one instrument where the timing of the BLE communication is strict, but the timing was different on some of the instruments. In my research I came across this site, and found it interesting.

Thanks again!
Dave Carlson
Valencia, Ca.

I have been quietly using this extension for awhile now and the filter scanning option is such a welcomed improvement.

I have also been working with other BLE modules where they are designated as central devices. One feature I have found to be extremely useful, which is not found here with the MIT BLE extention is the:

canRead / canNotify / canWrite checks you can make on the Characteristics discovered (once connected). Usually you do this check and if true you can then set up your Register or Read or Write Bytes/Strings etc.

Has this been considered at all? What would it take to include?

Look forward to the feedback.

Wow, I love it Thanks a lot @ewpatton for your News. im very happy :+1: :smiley: :+1:

This has been requested in the past (possibly by you?) a few times. I don't think that it would be hard to add, but it's mainly an issue of my time availability to implement it.

Thanks for the reply. Yes, I’ve requested a few times as it continues to be the one thing sorely missed.

I consider it best practice to avoid assumption…

So, it would be really really nice to see if you could find some time to add in this feature (and avoid these persistent requests :grin:).

Thanks.

Hi, it is really nice that there is a new extension. I am starting a new little micro:bit project, but I really got tripped up by the name of the new extension: 20190701. ??? That is almost a year ago! It took me quite some time and searching until I found that it is really the latest one.
I am looking forward now to using it!
Cheers, Ghica.

Here’s a version that should do what you want. Let me know:

1 Like

The version number is based on the last change that I made to the code base. Given testing and my work schedule, it can be months between coding a solution and actually releasing it as a production version.

Thanks Evan,
BLE is very important these IOT days.

I tried to play with BLE advertising (without connect).
I'm able to find the devices around me, and I can get their services UUID.
But, I'm not able to get the advertising data itself.
Using "call BluetoothLE1 AdvertisementData" block, always return null.
More details are here BLE Advertising Data
I tried the official 20190701 and the aix you post here few days ago.

THX

2 posts were split to a new topic: Connecting to a specific BLE device

Hello, i want to report that when i try to use method ConnectToDeviceWithServiceAndName to ESP32 arduino, i failed. So now i am using method ConnectWithAddress. And method WriteStrings and WriteStringWithResponse, they can't send more than 23bytes even after RequestMTU and event MTUChanged is success to change the MTU for both devices. But the good is method ReadStrings is able to receive more than 23bytes. Thank you

1 Like

I tried and fixed my problems on android 10 on my samsung mobile phone. :slight_smile:

A post was merged into an existing topic: No devices found during BLE scan on android 10

i cant unregisterforvalues?

i register with a button and unregister with another button

register works, but unregister not

What is the exact symptom when you unregister for values? Can you show a sample of your blocks?

Hello ewpatton,

in App it works just fine.
But on the BLE Peripheral the CCCD Handler is not written when unregistered.

Should be the same Issue:

The most recent BLE Extension is edu.mit.appinventor.ble-20200828.aix

I haven't tested this version yet, but you may want to try this version:

@ewpatton,

sorry for my late reply, i had not so much time to test the BLE stuff.

But i want to say that your unregister fix worked.
Thank you very much.

will it be official fixed in the next releases?

@ewpatton
i can't send more then 23 Bytes (Chars) with WriteStrings component.

MTU Size is set to 517 and i can send more then 23 Byte with WriteBytes component.

is it a Bug? ( or a Feature?)