I have set up a nrf52840 kit to upload data to nrf cloud via bluetooth but the data on the cloud is displayed as a hexadecimal number(1,2,3,4,5,6,7,8,9,A,B......) I want to display it as an integer or a float(1,2,3,4,5,6,7,8,9,10,11.......).
Here is the code to upload and calculate pulses value;
int pulses=0;
//Code to increment value of pulses;
void in_pin_handler(nrf_drv_gpiote_pin_t pin, nrf_gpiote_polarity_t action)
{
//nrf_drv_gpiote_out_toggle(PIN_OUT);
pulses=pulses+1;
NRF_LOG_INFO("Enter interrupt %d",pulses);
nrf_gpio_pin_set(PIN_1);
nrf_delay_ms(200);
nrf_gpio_pin_clear(PIN_1);
// nrf_gpio_pin_clear(PIN_1);
}
// code to upload data;;
static void notification_timeout_handler(void * p_context)
{
UNUSED_PARAMETER(p_context);
ret_code_t err_code;
// Increment the value of m_custom_value before nortifing it.
//m_custom_value=pulses;
err_code = ble_cus_custom_value_update(&m_cus,pulses);
APP_ERROR_CHECK(err_code);
}


