The driver for me to use B4R is using the Basic Language syntax. Adding layers of C will complicate debugging but maybe this is the only way... Hopefully not!
The current WiFi, BLE and Classic BT libraries are only capable of limited number of features. With the later Firmware of the ESP8266 and ESP32 many additional options were added but are not available within the libraries. e.g. DNS configuration, Mode switching, RSSI levels, Initiating Classic BT connections, BLE scanning and many more.