cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMonitor-RF: Scripting BLE Tests

connoisseur_de_mimi
Associate III

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?

1 REPLY 1
Richard.Chvr
ST Employee

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.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.