Sorry,
there is a major change in BLE API.
I'm still working on a solution for that.
GATTC needs ble_addr_type which is not used in Espruino (at least AFAIK)
According to esp-idf examples it appears in an GAP event (ESP_GAP_BLE_SCAN_RESULT_EVT)