This surprises me.
Have you edited the Settings.h file of the Edgent example? If not, then you will have a conflict here:
because GPIO0 is used as the BOARD_BUTTON_PIN for Edgent.
More info here:
In addition, I don’t understand how your Wemos is meant to distinguish between temperature and humidity readings coming from your RX2 board. The board is pushing these readings out one after another at half second intervals, and your Wemos is looking for them at 1.5 and 2 second intervals, but there is no synchronisation (and no way to establish synchronisation) between the RX2 and Wemos boards.
I’d suggest that you change this part of your sketch…
to this…
void myTimer(){
radio.read(&temp1, sizeof(temp1));
Blynk.virtualWrite(1, temp1);
Serial.print("temp1 = ");
Serial.println(temp1);
}
void myTimer1(){
radio.read(&temp2, sizeof(temp2));
Blynk.virtualWrite(2, temp2);
Serial.print("temp2 = ");
Serial.println(temp2);
}
void myTimer2(){
radio.read(&humidity2, sizeof(humidity2));
Blynk.virtualWrite(3, humidity2);
Serial.print("humidity2 = ");
Serial.println(humidity2);
}
so you can better understand the data that is appearing in the Wemos serial monitor.
I would suspect that you will need to send one string of data from your TX2 device which includes both temperature and humidity, then parse the results to give you the separate values.
Pete.