1 of 1 people found this helpful
In hello_client everything is tracked via connection handles. When a device is first encountered in the connection_up callback, the handle is used to store all pertinent data.
The connection handle can be retrieved as below:
UINT16 con_handle = emconinfo_getConnHandle();
This handle is used to reference and dereference the connection mux index via:
These connection mux indices are used to dereference hello_client.dev_info:
This is where all information specific to that device is stored. And, optionally, stored to NVRAM.
In connection up, the handle is used to reference data about that slave. After connection up, the handle can be used to dereference data about the slave. So from within your notification handler, you should be able to call emconinfo_getConnHandle(); and pull the necessary data from hello_client.dev_info.
What should also work is to pull the slave's address via:
UINT8 *p_remote_addr = (UINT8 *)emconninfo_getPeerAddr();
If you call something like this from within the notification handler, you should be able to pull the sender's address.
Exactly what I needed. Thank you!