Server side of simple client/server pair using VirtualWire
void setup()
{
Serial.begin(9600);
Serial.println("setup");
}
void loop()
{
const char *msg = "hello";
{
int i;
const char *msg = "goodbye";
digitalWrite(13, true);
Serial.print("Got: ");
for (i = 0; i < buflen; i++)
{
Serial.print(buf[i], HEX);
Serial.print(" ");
}
Serial.println("");
vw_send((uint8_t *)msg, strlen(msg));
digitalWrite(13, false);
}
}