4 Replies Latest reply on Nov 28, 2017 7:11 AM by e.pratt_1639216

    Recommended method to update manufacturer data when NOT advertising

    pieter_2521576

      Hi everyone!

       

      I'm able to dynamically update manufacturer specific data in the advertisement packet by waiting for CYBLE_BLESS_STATE_EVENT_CLOSE state, updating the data and calling CyBle_GapUpdateAdvData(). I do this only while the stack is in the CYBLE_STATE_ADVERTISING state.

       

      However, what is the recommended method to update manufacturer specific data when the module is in the other states (BLE_APP_STATE_STOPPED, CYBLE_STATE_INITIALIZING, CYBLE_STATE_CONNECTED, CYBLE_STATE_DISCONNECTED)?

       

      I want to update the manufacturer specific data in advance, so that the very first packet that is advertised will contain the correct content.

       

      Thanks in advance,

      Pieter