2025-02-21 09:11 AM
Sono partito dall'esempio BLE personalizzato per il core WB55RG, che esegue regolarmente Advertising. Tuttavia, ora vorrei aggiungere una scan_request (sto cercando di replicare l'esempio P2P_router partendo da un esempio BLE_custom per avere servizi e caratteristiche personalizzabili con CubeMX, ma ogni volta che lancio una richiesta di scansione ottengo un errore, più precisamente, aci_gap_start_general_discovery_proc() restituisce 0x0c [non consentito].
Qualcuno ha dei suggerimenti???
Ho allegato il mio app_ble.c dove, rispetto all'esempio BLE_custom, ho aggiunto solo la funzione Scan_Request (alla fine del file) che viene chiamata quando premo il pulsante sw1.
2025-02-21 09:13 AM
Sorry, i traslate in english.
I started from the custom BLE example for the WB55RG core, which is regularly performing Advertising. However, now I would like to add a scan_request (I'm trying to replicate the P2P_router example starting from a BLE_custom example to have customizable services and characteristics with CubeMX, but every time I launch a scan request I get an error, more precisely, aci_gap_start_general_discovery_proc() returns 0x0c [not allowed] .
Does anyone have any suggestions???
I have attached my app_ble.c where, compared to the BLE_custom example, I have only added the Scan_Request function (at the end of the file) which is called when I press the sw1 button.