2 Replies Latest reply on Mar 20, 2018 8:04 AM by e.pratt_1639216

    Sending data to a custom service characteristic

    AndyMarder

      I need to connect to a Peripheral from a Central, write a value to a custom service characteristic and disconnect. I looked into the Day 6 sample ( from 100 projects in 100 days) and it looks like it's close to what I need.but it uses the Alert service and CyBle_IascSetCharacteristicValue() API. In my case there is a custom service and a characteristic (4 bytes)

      Questions

      1. What API should be used to write a custom service characteristic  with known UUID of both?

      2. The code in day 6 sample calls CyBle_GattcStartDiscovery. In my case, with  UUID of the service and characteristic known, is there a need for that?

      Thank you

      Andy