ToF sensor code by Pololu translated from Arduino to mbed

no such method: requests