Other Parts Discussed in Thread: SIMPLELINK-CC13XX-CC26XX-SDK, Z-STACK
Hi,
I ran across the API SYS_SET_TX_POWER.
Looking at the documentation, the data of the SRSP is 1 byte: The TX Power; but looking at ZStack Code the message build in return is the status of the operation( either MAC_SUCCESS or MAC_INVALID_PARAMETER) and not the current TX Power as the documentation says.
Which one is the correct one?
static void MT_SysSetTxPower(uint8_t *pBuf)
{
/* A local variable to hold the signed dBm value of TxPower that is being requested. */
int8_t txPower;
uint8_t status;
/* Parse the requested dBm from the RPC message. */
txPower = pBuf[MT_RPC_POS_DAT0];
status = MAP_MAC_MlmeSetReq(MAC_PHY_TRANSMIT_POWER_SIGNED, &txPower);
// Send back response that includes the status of the set command.
// either: MAC_SUCCESS or MAC_INVALID_PARAMETER
MT_BuildAndSendZToolResponse( MT_SRSP_SYS, MT_SYS_SET_TX_POWER, 1,
&status);
}