Need help with programming an NXTBee on a NXT Lego Mindstorm Robot
The specific compiler error you're getting is this: You're passing BytesRead[0] as the first parameter to nxtReadRawHS(), which is a byte, but the compiler is telling you that the function expects a ubyte * (a pointer or address) in that position.

Change the first argument to either BytesRead or &amp;BytesRead[0]; both of these expressions represent the address of the first byte in the array.