I will take a look at that now - it's the BLE send integer block.
Hi Chris. Interesting. I have android 11, sdk 30
I am using Anke's solution, and still get an ACCESS_FINE_LOCATION
I did what you suggest and dragged a location sensor, but from there, in the block mode, I cannot see any "ask permission" from the location library ?
Thank you
Hmm - that should not be the case. We cannot directly send '0' from the App because it is reliant on the List Of Buttons indexes and everything in App Inventor starts with '1'. So, in the App, if the index is '10', we could catch that and send '0' instead - but how did you find '10' to be unidentified? It should be possible to have a Switch Case statement in the Sketch going into the 100s or 1000s......
Hello Phil - that is only good to go for Android <11, and permission is not asked for by most other Android versions, the permission is set in the Manifest (because the location sensor component is there).
Can you try this Muhammad:
I don't know sir, because when I type 10 there is no response at all in the bluelight application.
I have tried sir but there is still an error
That is not using the file I uploaded?
However, the Block error is the same and unfortunately that smells like a bug in the BLE extension. Does the error occur for every LED Button in the App?
yes, I am using it sir
The application also shows an error like that sir. And all buttons like that
Not that it is the cause of the problem - why have you changed the UUIDs?
....and that is using the original BLE send, or the replacement BLE send that uses a List?
That's because the App has not sent a value.
Hi Muhammad
Try these, I have changed the App send value type to Short. All Arduino boards will see a Short as a 16bit Integer. The Sketch is changed accordingly.
LED_Control_HM10_4.aia (196.7 KB)
LED_COBAK4.ino (6.9 KB)
No, I didn't change the UUID sir
I'm using original BLE sir
Yes I know that, I'm just reporting to you sir
I am now using the cobak4 sketch you gave me. Then I try to connect the bluetooth to my android.
What you write in the block and what is written in the application are different, is that okay sir?
As I was worried, there is an error in the UUID