Skip to main content
Graduate
December 10, 2025
Question

STM32CubeMonitor-RF: Scripting BLE Tests

  • December 10, 2025
  • 1 reply
  • 50 views

I want to use STM32CubeMonitor-RF's scripting feature to automate BLE tests, but I'm having troubles right from the start: 

Send(ACI_GAP_CREATE_CONNECTION;0x01D0;0x01D0;0x00;<client address>;0x00;0x0040;0x0040;0x0000;0x015E;0x0015;0x0015)
Wait(500)
Send(ACI_GATT_DISC_ALL_PRIMARY_SERVICES;<connection handle>)

ACI_GATT_DISC_ALL_PRIMARY_SERVICES needs a connection handle, which is only known at runtime, it would need to be extracted from a response to the ACI_GAP_CREATE_CONNECTION command. is this possible, or is it possible to set the handle to a constant value?

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    December 10, 2025

    Hello @connoisseur_de_mimi, no possibility to extract handle from response nor to set in a constant value. In most cases, handle does not change in between script executions loop, need to get it value at first execution and use this value in script.