Have you been using Serial.print() or Serial.println() in your Arduino code to debug? It is good way to debug if your IOT (esp32/arduino/other) is attached to your computer but when it is not you need another way to debug or assure that your IOT is working as expected. Lightweight logging is what you are looking for. UDP over WiFi comes handy and this project launches a UDP server you can send UDP packets to be logged to console/files.
go run *.go -udpport 12345
// 12345 is the default port if you do not specify one or .env file is not found.
create a .env file inside the same folder as the executable with the following:
UDPPORT=12345then run:
go run *.go