Sonoff RF Bridge 433 + Digoo DG-R8H 433MHz

Would it be possible to test the code below on an esp8266 ?

It could be a first step for the r8s integration.