Feature/ot plat rssi (#411)

* rename otPlatRadioGetNoiseFloor to otPlatRadioGetRssi

* update cli README with singleton command
This commit is contained in:
Marcin K Szczodrak
2016-08-17 16:11:06 -07:00
committed by Jonathan Hui
parent aabca8b299
commit a0c6f50051
5 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -300,7 +300,7 @@ RadioPacket *otPlatRadioGetTransmitBuffer(void)
return &sTransmitFrame;
}
int8_t otPlatRadioGetNoiseFloor(void)
int8_t otPlatRadioGetRssi(void)
{
return 0;
}
+1 -1
View File
@@ -423,7 +423,7 @@ RadioPacket *otPlatRadioGetTransmitBuffer(void)
return &sTransmitFrame;
}
int8_t otPlatRadioGetNoiseFloor(void)
int8_t otPlatRadioGetRssi(void)
{
return 0;
}
+2 -2
View File
@@ -272,9 +272,9 @@ extern void otPlatRadioTransmitDone(bool aFramePending, ThreadError aError);
/**
* Get the most recent RSSI measurement.
*
* @returns The noise floor value in dBm when the noise floor value is valid. 127 when noise floor value is invalid.
* @returns The RSSI in dBm when it is valid. 127 when RSSI is invalid.
*/
int8_t otPlatRadioGetNoiseFloor(void);
int8_t otPlatRadioGetRssi(void);
/**
* Get the radio capabilities.
+10
View File
@@ -40,6 +40,7 @@ OpenThread test scripts use the CLI to execute test cases.
* [router](#router)
* [routerupgradethreshold](#routerupgradethreshold)
* [scan](#scan)
* [singleton](#singleton)
* [state](#state)
* [thread](#thread)
* [version](#version)
@@ -734,6 +735,15 @@ Perform an IEEE 802.15.4 Active Scan.
Done
```
### singleton
Return true when there are no other nodes in the network, otherwise return false.
```bash
> singleton
true or false
Done
```
### thread start
Enable Thread protocol operation and attach to a Thread network.
+1 -1
View File
@@ -1264,7 +1264,7 @@ ThreadError NcpBase::GetPropertyHandler_PHY_RSSI(uint8_t header, spinel_prop_key
SPINEL_CMD_PROP_VALUE_IS,
key,
SPINEL_DATATYPE_INT8_S,
otPlatRadioGetNoiseFloor()
otPlatRadioGetRssi()
);
}