Dear Erel,
Tried to use WeMos as server in AP mode. B4J code connects correctly, sends command , B4R receives command and lists the files on log, but at the B4J end it always lands in AStream_Error sub and hence logs "connection closed".
I have attached my files for your perusal.
Since there is no issue of SPI lines ,I have modified the code accordingly.