Post topics, source code that relate to the Arduino Platform

User avatar
By DhanOS
#93701 Hi everyone!

I spent way too much time trying to solve what might be a simple issue. It must be simple as it takes just a few lines of code to cause it, right? Also, my Google Search skill did not work well this time for some reason. It's hard to find anything about this issue.

The code:
Code: Select all#include <ESP8266WiFi.h>
#include "settings.h"  # WiFi SSID and password

void setup() {

  Serial.begin(115200);

  WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
}


void loop() {
}


I narrowed the code to this to reproduce the issue. And the issue is constant Exceptions and restart no matter what I do. Mostly Exception(0), but I've also seen Exception(3) and Exception(9). Why does this happen? I only established a Serial connection and connected to the WiFi.

Is there also a way to stop printing these exceptions to the console? The device it's going to be connected to should not be flooded with "random" (to it) characters.

The board is Petoi WiFi ESP8266 It contains ESPRESSIF ESP-VROOM-02D.

I apologize if this is the wrong forum or if there's an answer to this question already. I'm tired of this issue already - I tried different things and tried to find a solution, but I don't seem to succeed here.