This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Send a 32 bits word with the Master Control Panel

Hello,

I'm looking to find a way to send a 32 bits number to the ledButtonDemo with the Master Control Panel (I have the Nordic dongle).

Indeed, I replace uint8_t led_state to uint32_t in the code, but when I want to send "123456" (for example) with the Master Control Panel, it is say : "Sending Prepare/Execute Write Request, handle 0x000E, value ...."

However, if I put uint8_t led_state, I'm able to send number which are lower than 255 (in hexadecimal).

Is there a way to do what I expect ?

Thanks in advance !!

Parents Reply
  • Yes, i did it, but I have a warning on this line : " init.led_write_handler = led_write_handler;".

    But I can't find where I have to modify something else to fix this warning. Did I made a mistake ?

    On the prompt, I have : ..\main.c(344): warning: #513-D: a value of type "void (*)(ble_lbs_t *, uint32_t)" cannot be assigned to an entity of type "ble_lbs_led_write_handler_t" init.led_write_handler = led_write_handler;

Children
No Data
Related