After adding radiohead configuration to receive data sent from remote sensor, I am no more able to save dat on SD card. It seems I have a kind of conflict.
#include <RHDatagram.h>
#include <RH_ASK.h>
As soon as I add the 2 following lines :
RH_ASK driver (2000, 3 ) ;
RHDatagram manager(driver, SERVER_ADDRESS);
For SD card , configuration is the following :
if (!SD.begin(10)) {
Serial.println("Card failed, or not present");
// don't do anything more:
return;
}
Serial.println("SD card initialized.");
I have tried to avoid pinout conflict between default ( MOS, MISO, CLOCK, CSS) value and pin used by
Radiohead but it no working at all. The sketch hangs as soon as I enter the command SD.open(...).
Perhaps I encounter an issue with SPI that is both used by SD and RadioHead library , can anyone could confirm this ?
Without the command SD.open , Sketch works and I receive sensor value on the Serial console.