I am using the following to extract the Device_Name from an advertised packet received on an Arduino Primo: peer.getFieldInAdvPck(BLE_GAP_AD_TYPE_COMPLETE_LOCAL_NAME, advertisedName, len); How am I able to extract the MAC and RSSI?
I am using the following to extract the Device_Name from an advertised packet received on an Arduino Primo: peer.getFieldInAdvPck(BLE_GAP_AD_TYPE_COMPLETE_LOCAL_NAME, advertisedName, len); How am I able to extract the MAC and RSSI?
Hi
There should be separate functions for reading the RSSI and the BLE address that you can run on the peer object:
int8_t rssi = peer.rssi();
char *address = peer.address();
Best regards
Torbjørn
Many thanks. I just needed to change: char address = peer.address(); to const char address = peer.address();
Ah, I forgot about that..
Good to hear you figured it out :)