Home/Support/Support Forum/what number of byte in i/o sampling?

what number of byte in i/o sampling?

0 votes
what actually frame in io/o sampling?
in different site i am getting different pls help me out .
i am sensing LDR from remote xbee s2, here i attaching code pls help me out.

void setup() {

void loop() {

// Remote XBee: AT, Base XBee: API
if (Serial.available() >= 23) { // Make sure the frame is all there
if (Serial.read() == 0x7E) { // 7E is the start byte
for (int i = 1; i<20; i++) { // Skip ahead to the analog data
byte discardByte = Serial.read();
int analogMSB = Serial.read(); // Read the first analog byte data
int analogLSB = Serial.read(); // Read the second byte
int analogReading = analogLSB + (analogMSB * 256);


asked May 8, 2017 in ZigBee PRO Featureset (and legacy ZNet 2.5) by baraiyanirav2225 New to the Community (4 points)

Please log in or register to answer this question.

1 Answer

0 votes
I am sorry but I don't understand your question. What do you mean by LDR? Have you looked at the radios product manual or XCTU's API frame generator?
answered May 8, 2017 by mvut Veteran of the Digi Community (15,412 points)