Connected and Disconnected event blocks missing for BluetoothClient

Hello,

I'm encountering a very strange issue with the BluetoothClient component in MIT App Inventor 2. In the Blocks view, when I click on the BluetoothClient component, the brown event blocks when BluetoothClient.Connected do and when BluetoothClient.Disconnected do are missing from the list. The only event block visible is when BluetoothClient.BluetoothError do.

I have already tried the following troubleshooting steps without success:

  • Refreshing the browser page (F5).
  • Changing browsers (Chrome, Firefox, Edge).
  • Completely clearing browser cache and data.
  • Disabling all browser extensions (ad blockers, etc.).
  • Deleting the BluetoothClient component from the project and re-adding it.
  • Creating a completely new project and adding only a BluetoothClient component: the Connected and Disconnected blocks are also missing in this new project.

The problem persists across different projects and after recreating the component. Is this a known bug, or is there another possible explanation?

Thank you for your help.

David

Set Blocks Toolkit to Default in Project Properties ?

Hmmm, it appears there are no such event blocks ...

Thank you for the suggestion. I have checked, and my BlocksToolkit is already set to 'Default'.

Regarding your comment, are you confirming that the 'when ClientBluetooth.Connected' and 'when ClientBluetooth.Disconnected' event blocks do not exist at all in App Inventor? I thought these were standard blocks, I just want to confirm if these blocks should exist.

You need to use some logic with this block

image

which is a boolean (true or false)

these events do not exist
usually you use the following code

if Connect ...
Then "connected"
Else "Not connected"

Taifun