Explain function present in UbidotsESP8266.cpp file


can any on explain strstr(readData(2000) function present in UbidotsESP8266.cpp file

what does 2000 stands for can we change that number?

please explain if anyone knows it…


Hello @SPARKoo7,

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.

Maria C.