Hi,
I have successfully flashed the Zephyr Bluetooth: Peripheral HT sample to my nRF52833 DK.
I would like to change the service used for temperature indications from the currently used Health Thermometer service to the Environmental Sensing Service, and I would also like to change the characteristic UUID. This requires changing the attribute table in the following file: samples/bluetooth/peripheral_ht/src/hts.c.
When I change the characteristic UUID to BT_UUID_TEMPERATURE, the temperature measurements (in decimal) received on my phone (using nRF Connect app) are incorrect but they appear correct in hexadecimal. I don't have this issue when the characteristic UUID is BT_UUID_HTS_MEASUREMENT. Why does this happen when I change the UUID? I have attached a snippet of the altered attribute table in this file.
Thanks,
Adam
BT_GATT_SERVICE_DEFINE(ess_svc, BT_GATT_PRIMARY_SERVICE(BT_UUID_ESS), BT_GATT_CHARACTERISTIC(BT_UUID_TEMPERATURE, BT_GATT_CHRC_INDICATE, //BT_UUID_HTS_MEASUREMENT BT_GATT_PERM_NONE, NULL, NULL, NULL), BT_GATT_CCC(htmc_ccc_cfg_changed, BT_GATT_PERM_READ | BT_GATT_PERM_WRITE), BT_GATT_CHARACTERISTIC(BT_UUID_HUMIDITY, BT_GATT_CHRC_INDICATE, BT_GATT_PERM_NONE, NULL, NULL, NULL), );