Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zigee RSSI #35

Open
misilot opened this issue Oct 21, 2016 · 0 comments
Open

Zigee RSSI #35

misilot opened this issue Oct 21, 2016 · 0 comments

Comments

@misilot
Copy link

misilot commented Oct 21, 2016

Is there a way to get the RSSI for the transmitter (on the return packet ack)?

I tried doing:

  // Base Station Address
  // Change these two values to the coordinator node's address
  XBeeAddress64 XBee_Addr64 = XBeeAddress64(0x0013a200, 0x40f317ce);

  //Build Transmit Request Packet
  ZBTxRequest zbTx = ZBTxRequest(XBee_Addr64, (uint8_t*) params, strlen(params));

  //Send the Data packet
  xbee.send(zbTx);

  // We are expecting an ACK packet, time to check for it.
  // Wait up to half second for the status response to be delivered
  if (xbee.readPacket(500)) {
    // got a response!

    // The response should be a Zigbee TX Status Response
    if (xbee.getResponse().getApiId() == ZB_TX_STATUS_RESPONSE) {
      xbee.getResponse().getZBTxStatusResponse(txStatus);

      // Check the delivery status
      if (txStatus.getDeliveryStatus() == SUCCESS) {
        // success.

        sprintf(tempParam, "packetId=1&rssi=%x",
                rx16.getRssi());

But all I seem to get is Hex 25 when I outputting the value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant