How can i send twi data(like accelerometer) by bluetooth to another Nordic?

Good morning, i would want to develop a code in order to have a twi sensor(like an accelerometer) and communicate its data by Bluetooth to another board Nordic, or computer. Now i have two Nordic nrf52840. How can i solve this? Using NUS? And how? Thanks

Parents Reply
  • Good morning, I used NUS service and now I'm able to send data between master board and slave board. Now I have another problem: using a terminal emulator like Putty, i have particular characters instead of having numbers(coming from an ADC sampling). I suppose the problem is related to the encoding of the single data, maybe because it reads ASCII characters,doesn't it? How can i solve this problem? In particular, what could I add in the slave code in order to have printed number samples instead of these characters? Thanks

Children
Related