Would it be possible to test the code below on an esp8266 ?
It could be a first step for the r8s integration.