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.

read characteristic value from peripheral without connection?

Is it possible to read a characteristic value without connecting to the peripheral device?

If so, how would one go about setting up both the central and peripheral to achieve this?

  • Hello Tobias,

    A BLE connection is required to be established prior to Reading or Writing data associated with a Characteristic.
    You could do something like updating the Advertisement data with the Char value assuming it fits within the available Advertising data payload length. Unless you encrypt it, the data will be accessible by any scanning device.

    Best wishes
  • Great answer. Thanks!

    Now, is there a sample application or doc that shows all possible configurations for advertising data and how to retrieve it from a central device? All im finding is "usual flags" or "usually configured like so" in the ble stack docs.

    edit: found the answer. For those who will stumble upon my question in the future:

    usual flags conform to bluetooth SIG standards.

    I just added some random uint8 variables to the end of the advertData[] array which is then passed onto GAPRole_SetParameter, and they show up in the advertisement as some unknown GAP.