How sending multiple values over xbee; is it possible ?

Hi guys,

i have the problem that i dont know how to send multiple values through one xbee to another xbee.

i dont want to send them axes per axes. Is it possible to make an array store them and send them?

Im getting some bits from the HIDUsbJoystick at this point…

struct GamePadEventData
{
	uint8_t X, Y, Z1, Z2, Rz;

};
void JoystickEvents::OnGamePadChanged(const GamePadEventData *evt)
{
	Serial.print("X: ");
	PrintHex<uint8_t>(evt->X);
	Serial.print("\tY: ");
	PrintHex<uint8_t>(evt->Y);
	Serial.print("\tZ: ");
	PrintHex<uint8_t>(evt->Z1);
	Serial.print("\tZ: ");
	PrintHex<uint8_t>(evt->Z2);
	Serial.print("\tRz: ");
	PrintHex<uint8_t>(evt->Rz);
	Serial.println("");

  JoyVarBtn = (evt->X);
  JoyVarX = (evt->Y);
  JoyVarY = (evt->Z1);
  JoyVarZ = (evt->Z2);
  JoyVarBtnBase = (evt->Rz);
}

I tried some stuff but nothing seemed to be the beginning of the right way.

gnom:
I tried some stuff but nothing seemed to be the beginning of the right way.

What have you tried and why didn’t it work?

Is it possible to make an array store them and send them?

Yes.

Having some clue what part of the snippet of code, if any, is talking to the XBee, and what the other XBee is doing just might be useful.