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

Failed to modify AT command. #77

Open
sdiaz-qkt opened this issue Apr 23, 2019 · 0 comments
Open

Failed to modify AT command. #77

sdiaz-qkt opened this issue Apr 23, 2019 · 0 comments

Comments

@sdiaz-qkt
Copy link

sdiaz-qkt commented Apr 23, 2019

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:

 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.

Thank you.

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