In the transmitter example for VirtualWire, the message being sent is declared as const char *msg = “hello”;
But what do I do if I want be flexible in the message I am sending?
What if I want to send the word goodbye instead that comes as result of user input?
How do I declare the variables so that the code will compile?
The function that uses msg is vw_send((uint8_t *)msg, strlen(msg));