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