I just want to understand concept. For example, I need transmit battery level, heart rate level and other.. in closed (encrypted characteristic). I use S130 nRF51 SDK9. HRS example. If I run this example, on my smartfone I can see all of this data. But data not crypted. I use s130 in advertise mode.
I need underastand concept what I sould do to crypted it? Is it necessary add to
static void gap_params_init(void) ()
uint8_t passkey[] = "123456";
ble_opt_t static_pin_option;
static_pin_option.gap_opt.passkey.p_passkey = passkey;
err_code = sd_ble_opt_set(BLE_GAP_OPT_PASSKEY, &static_pin_option);
APP_ERROR_CHECK(err_code);
Or I need add another fields more? With those added lines, I don't see crypted data on smartfone. Why?