Page 1 of 1

Your ESP32 (ESP32-WROOM-32D (4MB)) If you are connected via Wifi, it will be initialized after 1 hour. About this meas

Posted: Mon Jan 11, 2021 2:28 pm
by NY20200803
Your ESP32 (ESP32-WROOM-32D (4MB))
If you are connected via Wifi, it will be initialized after 1 hour.
This causes the following problems.

● From the outside with WIFI
Communicate by writing the value of any password.
The value is stored in EEROM.
After this, after communicating for 1 hour, it will be initialized and the set password etc. will disappear.
It is the same even if it is stored in EEROM.

About measures at this time
Connect to an external microcomputer with UART and
Is there any way other than storing it in an external microcomputer?
please tell me

Re: Your ESP32 (ESP32-WROOM-32D (4MB)) If you are connected via Wifi, it will be initialized after 1 hour. About this me

Posted: Tue Jan 12, 2021 2:29 am
by ESP_Sprite
Your description doesn't make much sense... you're saying your EEPROM settings disappear after an hour? What SDK are you using:? Can you post your code here?

Re: Your ESP32 (ESP32-WROOM-32D (4MB)) If you are connected via Wifi, it will be initialized after 1 hour. About this me

Posted: Sat Mar 13, 2021 9:02 am
by NY20200803
For the following software, serially from an external microcomputer
Confirm ssid and password
ex
// Please input the SSID and password of WiFi
const char * ssid = "";
const char * password = "";
Source

/ **
* A simple Azure IoT example for sending telemetry.
* /

#include <WiFi.h>
#include "Esp32MQTTClient.h"

// Please input the SSID and password of WiFi
const char * ssid = "";
const char * password = "";
=====
/ * String containing Hostname, Device Id & Device Key in the format: * /
/ * "HostName = <host_name>; DeviceId = <device_id>; SharedAccessKey = <device_key>" * /
/ * "HostName = <host_name>; DeviceId = <device_id>; SharedAccessSignature = <device_sas_token>" * /
static const char * connectionString = "";

static bool hasIoTHub = false;

void setup () {
Serial.begin (115200);
Serial.println ("Starting connecting WiFi.");
delay (10);
WiFi.begin (ssid, password);
while (WiFi.status ()! = WL_CONNECTED) {
delay (500);
Serial.print (".");
}
Serial.println ("WiFi connected");
Serial.println ("IP address:");
Serial.println (WiFi.localIP ());

if (! Esp32MQTTClient_Init ((const uint8_t *) connectionString))
{
hasIoTHub = false;
Serial.println ("Initializing IoT hub failed.");
return;
}
hasIoTHub = true;
}

void loop () {
Serial.println ("start sending events.");
if (hasIoTHub)
{
char buff [128];

// replace the following line with your data sent to Azure IoT Hub
snprintf (buff, 128, "{\" topic \ ": \" iot \ "}");

if (Esp32MQTTClient_SendEvent (buff))
{
Serial.println ("Sending data succeed");
}
else else
{
Serial.println ("Failure ...");
}
delay (5000);
}
}
=====
In this state, it will be disconnected once an hour.