Problem to display IP address on WiFi Kit 32

Hi,
In my Wi-Fi project using WiFi Kit 32 I have not been successful to display the IP address on the OLED display. There is no problem to print the IP address to the serial monitor using
Serial.println(WiFi.localIP());
but I don’t know the code for displaying IP on the OLED. I have made many attempts but nothing works.
I am using Arduino IDE 1.8.13, and have installed libraries
wifi.h
Wire.h
heltec.h
Arduino.h

Can anyone give me the code I need please.

br Spacerowa.

Hi,
I take this:
` sprintf(myTCP,"%u.%u.%u.%u", WiFi.localIP()[0], WiFi.localIP()[1], WiFi.localIP()[2], WiFi.localIP()[3]);

greeting
Heiner

1 Like

Hi Heiner,
I adapted your code for using the integrated OLED on the WiFi Kit32 module with the heltec.h library in the Arduino IDE, and I am happy to report that I now have working code.
Thank you very much.
Cheers,
Spacerowa.