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

Send a 32 bitsword to the LedButtonDemo

Hello,

I'm looking to send a 32 bits word to the example "LebButtonDemo", using an iPhone application created with Evothingd Studio (it uses Javascript).

I'm able to send a 32 bits to my example with the Master Control Panel (and with the nRF51 dongle). Then on my example, I change the uint8_t led state to uint32_t led_state, and I use this line to reassemble the data :

p_lbs->led_write_handler(p_lbs, ( (((uint32_t)(p_evt_write->data[0]))<<24) | (((uint32_t)(p_evt_write->data[1]))<<16) | (((uint32_t)(p_evt_write->data[2]))<<8) | ((uint32_t)(p_evt_write->data[3])) ));

So my question is : what is the way to send a 32 bits ? Because I can't find any example sending data bigger than 8 bits, and the source code of the Master control Panel isn't available.

Thank you for helping me !!

Parents Reply Children
No Data
Related