1,How do I send a data packet using BLE Peripheral? What API should I call? How should I prep that API? Do I have to care about the format of the data that will be sent, or do I only need to pass it to certain member of a "packet struct"? For example (not an actual struct from Nordic official examples),
p_BLE_Struct->PDU = DummyData;
?
Note that there is no need to give details about initializing the component that API belongs to, as examples are rather abundant.
2.How do I receive a data packet using BLE Central? What API should I call? Will I be right if I were to assume that a pointer to a data structure of some sort will be passed to the receving API function, and all I have to do is to look up data received in that data structure later?
I've tried the BLE multilink example, but it only went so far as to turn on and off an LED, the actual process, i.e. sending and receiving the data was well hidden and too painstaking to find.
It's a big question, and a comprehensive one, and I sincerely appreciate the help from any good Smaritans.
Erik.