BLE WriteBytes not working with Arduino Uno WiFI R2?

I haven't used the ARDUINO UNO WiFi REV2, I'm not sure the following code will work:
https://community.appinventor.mit.edu/t/ble-esp32-bluetooth-send-receive-arduino-ide-multitouch/1980/2