Jobi-Wan:
Just to clarify what TolpuddleSartre wrote...When you #define something, that's a macro.
#define bla blub
From that point on, the compiler will replace any occurrence of bla with blub. That's called macro expansion. It expands the thing you've #defined to the stuff you've #defined it to be. In this case, it expands bla into blub.
In your case, RemoteXY_CONF is a macro. It occurs in the line you're asking about. That line looks normal if you don't know that RemoteXY_CONF is a macro, but do the macro expansion manually, and you'll see the problem.
From what I can see RemoteXY_CONF is a uint8_t array, I can't see it #define'd anywhere, it must be in the RemoteXY library....
Does this mean that there is no way to read bytes from RemoteXY_CONF ??
I would not have a clue how to "do the macro expansion manually" with my sketch....
Here's a simpler example with much less "CONF"
//////////////////////////////////////////////
// RemoteXY include library //
//////////////////////////////////////////////
// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__SOFTSERIAL
#include <SoftwareSerial.h>
#include <RemoteXY.h>
// RemoteXY connection settings
#define REMOTEXY_SERIAL_RX 2
#define REMOTEXY_SERIAL_TX 3
#define REMOTEXY_SERIAL_SPEED 9600
// RemoteXY configurate
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
{ 255,1,0,0,0,11,0,8,108,0,
4,0,26,14,10,36,2,26 };
// this structure defines all the variables of your control interface
struct {
// input variable
int8_t slider_1; // =0..100 slider position
// other variable
uint8_t connect_flag; // =1 if wire connected, else =0
} RemoteXY;
#pragma pack(pop)
/////////////////////////////////////////////
// END RemoteXY include //
/////////////////////////////////////////////