I have two of the nrf52840 boards and want one to implement a cascade reconciliation between them. That is device A and B have similar secret keys but need to make them match. To do this they repeatedly send each other the parity bits of different segments of the key.
How could I go about getting device A to send its parity bit to B and have B make a decision based on this and send back the correct parity bit? I understand what the messages must contain but am not sure how to create and send this information between them. I have worked a fair bit in the UART example for central and peripheral but have not found anything to create and send a message.