I want to send a float as a value of a characteristic.
As I know is this all what I have to change to send a float...
float temperature;
uint16_t len = 20;
attr_char_value.init_len = 4;
attr_char_value.init_offs = 0;
attr_char_value.max_len = 4;
attr_char_value.p_value = (uint8_t*)&temperature;
hvx_params.offset = 0;
hvx_params.p_len = &len;
hvx_params.p_data = (uint8_t*)&temperature;
But it doesnt work. I wont recieve any data.