hi guys, im developing a program to interface accelerometer MMA8452 with nrf51822.so if accelerometer is in peripheral device,how do i send the x,y,z co-ordinates from peripheral to my central device??
hi guys, im developing a program to interface accelerometer MMA8452 with nrf51822.so if accelerometer is in peripheral device,how do i send the x,y,z co-ordinates from peripheral to my central device??
Here is the good answer for you, read this post
Also if this is the only purpose of your peripheral, data are not sensitive and X/Y/Z values are 16 or 32-bit numbers then you might consider fitting it into advertising data which saves you lot of code and some power because you do not manage any connection.
hello, the data that im getting through accelerometer will be signed data.so how to convert that to unsigned data to send over ble??
thankyou
Sougandh A.K