I'm trying to modify the destination address (DL) and destination port (DE) programmatically. I'm using the following code, which is basically a copy-paste from one of the examples:
xbeeCallbacks.setSerial(monitorSerial);
uint8_t value = 1;
AtCommandRequest req((uint8_t*)"DE", &value, sizeof(value));
req.setFrameId(xbeeCallbacks.getNextFrameId());
uint8_t status = xbeeCallbacks.sendAndWait(req, 150);
if (status == 0)
Serial.println(F("Set DE successfully"));
else
Serial.println(F("Failed to set DE, expect problems"));
Just for testing purposes I'm writing the value of 1 into my destination port. This code prints a "Failed to set DE, expect problems".
Why is that ? Am I forgetting something? I'm using an Xbee Cellular 3G by the way.
Hello,
I'm trying to modify the destination address (DL) and destination port (DE) programmatically. I'm using the following code, which is basically a copy-paste from one of the examples:
Just for testing purposes I'm writing the value of 1 into my destination port. This code prints a "Failed to set DE, expect problems".
Why is that ? Am I forgetting something? I'm using an Xbee Cellular 3G by the way.
Thank you.