ThingPulse / esp8266-oled-ssd1306

Driver for the SSD1306 and SH1106 based 128x64, 128x32, 64x48 pixel OLED display running on ESP8266/ESP32
https://thingpulse.com
Other
2k stars 638 forks source link

Any Way To Print IP Address #203

Closed mrmonteith closed 6 years ago

mrmonteith commented 6 years ago

I'm using the WiFi library and was trying to display things such as IP Address on the display instead of Serial.println . However I get an error: OLEDDisplay.h:180:10: note: no known conversion for argument 3 from 'IPAddress' to 'String'

Maybe there is a way you can mimick the Serial,println function, or a way to convert it to a string so that your drawString function will work.

mrmonteith commented 6 years ago

I ran across the answer looking for something else. Figures.
display.drawString(30, 40 , WiFi.localIP().toString());