Skip to content

bt_le_characteristic_read will not update values after the first read request. #7

Description

@SoulTieGames

Description

As the title states, bt_le_characteristic_read will not update values after the initial read request. This only happens in Gamemaker. If I connect to my BLE server with "nRF Connect" on mobile, the values are read properly.

In Thonny I have a simple increment to test:
while True: num +=1 p._ble.gatts_write(p.temp_tx, str(num)) print(str(num));

In the Gamemaker social async event, the read request returns the correct value only the first time it is used.
If I continue to call bt_le_characteristic_read, the output is the initial value - not the updated value.

Expected Change

No response

Sample Package

https://api.gamemaker.io/api/github/downloads/000f6e64-0f70-4533-aed1-2d916e2743f9

Steps To Reproduce

  1. Start GameMaker
  2. Connect to a BLE server
  3. Read a characteristic handle value
  4. Update a characteristic handle value on the server
  5. Read the characteristic handle value again, the value will not have changed.
  6. See the issue

How reliably can you recreate this issue using your steps above?

Always

Which version of GameMaker are you reporting this issue for?

2024.14.2.256

Which platform(s) are you seeing the problem on?

Windows, Android

Metadata

Metadata

Assignees

Labels

BluetoothThis issue affects the specific named extensionextensionThis issue is to do with any of the official extensions

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions