UTOA function implicit declaration - ESP8266


If you are asking a question, please follow this template:

  1. My goal is: To use utoa function
  2. My actions are: when I choose platform as esp32 the utoa function works, but same function call throughs error as implicit declaration when I choose platform as esp8266.
  3. The result I see is: When I give build for esp8266 it says, Implicit declaration of utoa function
  4. My expectation & question is: How to use same function for esp32 and esp8266.

AFAIK, utoa is not part of the C standard. Some compilers implement it, others don’t.

You can use sprintf or snprintf to implement what you want for bases 8, 10 and 16.