For the custom_ble_service_example, trying to change the service used in the example to a Bluetooth SIG service.
Original is:
CUSTOM_SERVICE_UUID_BASE f364adc9-b000-4042-ba50-05ca45bf8abc
#define CUSTOM_SERVICE_UUID_BASE {0xBC, 0x8A, 0xBF, 0x45, 0xCA, 0x05, 0x50, 0xBA, \
0x40, 0x42, 0xB0, 0x00, 0xC9, 0xAD, 0x64, 0xF3}
#define CUSTOM_SERVICE_UUID 0x1400
#define CUSTOM_VALUE_CHAR_UUID 0x1401
Change To Bluetooth SIG environmental service:
CUSTOM_SERVICE_UUID_BASE 00000000-0000-1000-8000-00805f9b34fb
#define CUSTOM_SERVICE_UUID_BASE {0xFB, 0x34, 0x9B, 0x5F, 0x80, 0x00, 0x00, 0x80, \
0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
#define CUSTOM_SERVICE_UUID 0x181A
#define CUSTOM_VALUE_CHAR_UUID 0x2A6E
Using the same RAM settings as Orginal:
RAM_START=0x20002220
RAM_SIZE=0xdde0
The Original advertises ok, but the SIG version shows an error in RTT:
0> <error> app: ERROR 7 [NRF_ERROR_INVALID_PARAM] at C:\Files\Nordic\nRF5_SDK_15.0.0_a53641a\examples\ble_peripheral\custom_ble_service_example-1\main.c:779
0> PC at: 0x0002F18D
0> <error> app: End of error report
where main.c:779 is:
err_code = ble_advertising_init(&m_advertising, &init);
APP_ERROR_CHECK(err_code);
If I just change the SIG UUID pair of "0x00, 0x80" to Original "0x50, 0xBA", then the SIG version will advertise and show Unknown Service.
What piece am I missing for the SIG service to advertise on android nrf connect as Environmental Service, Temperature using the custom_ble_service_example?
-thank-you.