For the KW41Z connectivity_1.0.2 BLE mesh demo, I am able to send custom data through the mesh network, and receive the data in MeshGenericCallback at event gMeshCustomDataReceived_c. But I also need RSSI of the received packet, as well as the remaining TTL value.
So how can I get:
- the remaining TTL of a received packet
- the RSSI of a received packet.
what about RSSI that Yuan asked? As far BLE MESH hasn't been supported yet I would like to base on traditional star-topology BLE and read RSSI. Of course, measuring RSSI is possible during scanning process (via GAP commands), however I couldn't find such opportunity in connection mode using GATT commands. Is there any way to get permanently received packets' RSSI? Mario, would you mind to find any solution for this issue?
The RSSI value could be read it, during scanning process using gapScannedDevice_t, but You will have to check all the adv package and look the only that you want.
During a connection you can look for the RSSI value;
typedef enum gapRadioPowerLevelReadType_tag
gRssi_c /*!< Reading the Received Signal Strength Indication in a connection. */