Sorry, as I don't have any of these devices, I cannot debug their code here.
But can give suggestions on steps to debug.
So far all I know is the init() call is failing. But why?
So if you look at their init function, shown below, you might add some debug stuff.
Code:
bool RH_E32::init()
{
// When a message is available, Aux will go low 5 msec before the first character is output
// So if we ever wait more than this period of time after Aux low, can conclude there will be no data
_s->setTimeout(10);
// Wait until the module is connected
waitAuxHigh();
if (!getVersion())
return false; // Could not communicate with module or wrong type of module
setMode(RHModeRx);
clearRxBuf();
if (!setDataRate(DataRate5kbps))
return false;
if (!setPower(Power21dBm))
return false;
// if (!setBaudRate(BaudRate9600, Parity8N1))
// return false;
if (!setFrequency(433))
return false;
return true;
}
Something like:
Code:
bool RH_E32::init()
{
Serial.println("RH_E32::init() called");
// When a message is available, Aux will go low 5 msec before the first character is output
// So if we ever wait more than this period of time after Aux low, can conclude there will be no data
_s->setTimeout(10);
// Wait until the module is connected
waitAuxHigh();
if (!getVersion())
return false; // Could not communicate with module or wrong type of module
Serial.println("After getVersion test");
setMode(RHModeRx);
clearRxBuf();
if (!setDataRate(DataRate5kbps))
return false;
Serial.println("After setDataRate");
if (!setPower(Power21dBm))
return false;
Serial.println("after setPower");
// if (!setBaudRate(BaudRate9600, Parity8N1))
// return false;
Serial.println("after setbaudrate");
if (!setFrequency(433))
return false;
Serial.println("after setFrequency");
return true;
}
And build and run and see how far it gets. If it dont see the message after getVersion, then you go to that function and maybe instrument it...
Good luck
EDIT: Note: typed in the Serial.println() calls on the fly so can be typos...
EDIT2: Also in cases like this, it could help if you posted pictures of your setup. For example, it might show if you are connected up to the wrong pins, or maybe missing a connection to ground. Or maybe you are using a breadboard and the solder joints from the Teensy to the pins has issues, like no solder or a solder bridge to another pin.