CYW20737 runs as a server.
How to implement a read characterictic similar as in Device-Name?
The firmware will update the value during non-connect. Once a client connects it will read that value immediately. That works nicely for device-name, but I need a sepearate characteristic for that.
In all the examples I found nothing appropiate, only writing to a characteristic
If you already know the UUID of the characteristic, then you can use the example from the hello_sensor app:
// Read value of the service from GATT DB.
ble_tracen((char *)db_pdu.pdu, db_pdu.len);