مهندس این کد گیرنده :
#include <VirtualWire.h>
void setup()
{
vw_set_ptt_inverted(true);
vw_setup(2000);
vw_rx_start();
}
void loop()
{
uint8_t buf[VW_MAX_MESSAGE_LEN];
uint8_t buflen = VW_MAX_MESSAGE_LEN;

if (vw_get_message(buf, &buflen))
{
digitalWrite(13, true);
}


این کد فرستنده :
#include <VirtualWire.h>
void setup()
{
vw_set_ptt_inverted(true);
vw_setup(2000);


}

void loop()
{
const char *msg = "hello";
digitalWrite(13, true);
vw_send((uint8_t *)msg, strlen(msg));
vw_wait_tx();
digitalWrite(13, false);
}

من یکم سر در نمیارم از بحث اشاره گر ....
این سه خط از گیرنده رو نمیفهمم :

uint8_t buf[VW_MAX_MESSAGE_LEN];
uint8_t buflen = VW_MAX_MESSAGE_LEN;

if (vw_get_message(buf, &buflen))

این دو خط از فرستنده :
const char *msg = "hello";
vw_send((uint8_t *)msg, strlen(msg));
واسه همین نمیدونم دوتا کد مجزا رو چطوری بفرستم ...
ممنون