This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SimpleBleCombo Demo build errors

On the BTLE wik page there is now a new sample combo role demo with projects for a PeripheralObserver and a CentralBroadcaster. (Applications BLE v1.3 source)If I unzip the projects into the 1.4 sdk projects/ble dir and try to build the CentralBroadcaster - there is a missing include file 'centralBroadcaster.h'. File is not in the zip and I suspect it should be put in the ble/profiles/Roles folder. I don't have SDk 1.3 and cant find a download of it - to check if it was in there, but its not in the 1.4 sdk - can anyone supply this?

When you build the peripheralObserver project there is an error in peripheralObserverProfile.c - GAPRole_TerminateConnection()...GAP_TerminateLinkReq() is called without a reason param - so generates a too few arguments in function call error - however this is simpler to fix by just adding a disconnect reason.

Anyone managed to get these projects to build or know of a link to the corrected source?

  • A bit more info..

    In the BLECentralBroadcaster - simpleBLECentralBroadcaster.c is the only file that uses the missing *.h file - and I believe the only thing defined in the *.h file will be a value for

    "GAP_ADTYPE_ADV_DISCOVER_IND; // use scannable unidirected advertisements" called in SimpleBLECentral_init()

    The value used ( and defined) in the original simpleBLECentral code is :

     //uint8 advType = GAP_ADTYPE_ADV_NONCONN_IND;   // use non-connectable advertisements.

    So anyone know what the correct value should be for the advType GAP_ADTYPE_ADV_DISCOVER_IND?