The function "readData(uint16_t timeout)" is to read the data from ESP8266 pins. The 2000 stands the timeout to response. This timeout is a standard timeout, if you assign a lower value, probably you will not receive the answer correctly because you don't have the enough time to wait the response.
We recommend you to not change it. But if you want, you should take in consideration what we mentioned above.