this is as far as i got with "hit & miss" trials !!
msg = uint8_t(keyPress);
vw_send(msg);
i don't know what keyword to place in front of msg so that the compiler doesn't give me "undeclared" error.
i'm guessing there's possibly another error in the next line with the actual vw_send() - if it has to be a "string" ? then i still need to pass a 'length' parameter ?
the uintX_t format is part of the standard types. It allows you to select an integer of specified width on any platform, where things like int may be different sizes between systems. You can drop the leading 'u' and get signed integer types too. http://www.nongnu.org/avr-libc/user-manual/group__avr__stdint.html
msg is a pointer, the cast has a '*' which signifies a pointer type as well. Its not really doing anything apart from representing the pointers differently.
As the function is accepting a length you can send a single character like this:
Send a message with the given length. Returns almost immediately, and the message
will be sent at the right timing by interrupts. Returns true if the message was accepted
for transmission. Returns false if the message is too long (>VW_MAX_PAYLOAD).