New to forum.
The transmitter is sending something and the receiver is receiving it.
The problem, the message is garbage.
Transmitter sketch
#include <RH_ASK.h>
#include <SPI.h>
RH_ASK rf_driver;
void setup() {
rf_driver.init();
Serial.begin(9600);
}
void loop()
{
const char *msg = "Hello World";
rf_driver.send((uint8_t *)msg, strlen(msg));
rf_driver.waitPacketSent();
{
Serial.print("Message Transmitted: ");
Serial.println(msg);
delay(20000);
}
}
Transmitter Serial Monitor
23:05:01.498 -> Message Transmitted: Hello World
23:05:21.612 -> Message Transmitted: Hello World
23:05:41.749 -> Message Transmitted: Hello World
Receiver sketch
#include <RH_ASK.h>
#include <SPI.h>
RH_ASK rf_driver;
void setup()
{
rf_driver.init();
Serial.begin(9600);
}
void loop()
{
uint8_t buf(11);
uint8_t buflen = sizeof(buf);
if (rf_driver.recv(buf, &buflen))
{
int i;
Serial.print("Message Received: ");
Serial.println((char*)buf);
}[code]
[/code]
}
Receiver Serial Monitor
23:08:02.743 -> Message Received:
for some reason the copy and past won't pick up the two weird characters in
Serial.println((char*)buf);
Any help would be appreciated.
Steve
Print what you received as a hex character so you can see the bit pattern. You should be able to tell if it inverted quite easily.
New to forum
Please read the how to use this forum sticky post as you are breaking the rules about posting code.
Hi,
Welcome to the forum.
Please read the post at the start of any forum , entitled "How to use this Forum".
OR
http://forum.arduino.cc/index.php/topic,148850.0.html.
Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
Thanks.. Tom... 
This is the second time in two days that someone has had trouble with that terrible example. Please post a link showing us where it came from, and please use code tags to post code.
The following is wrong and won't work. Buf is declared incorrectly, too small and not zero terminated as required. Attempting print it will produce garbage on the serial monitor.
Wrong:
uint8_t buf(11);
uint8_t buflen = sizeof(buf);
if (rf_driver.recv(buf, &buflen))
{
int i;
Serial.print("Message Received: ");
Serial.println((char*)buf);
}
Fixed code:
uint8_t buf[20]; //make this larger than ANY expected message
uint8_t buflen = sizeof(buf);
if (rf_driver.recv(buf, &buflen))
{
buf[buflen]=0; //zero terminate the message.
Serial.print("Message Received: ");
Serial.println((char*)buf);
}