Search found 90 matches

by tele_player
Mon Feb 12, 2018 7:16 am
Forum: ESP32 Arduino
Topic: Saving and writing to eeprom
Replies: 25
Views: 58495

Re: Saving and writing to eeprom

SPIFFS should already be installed in you esp32 Arduino installation. #include <SPIFFS.h> Note: using SPIFFS involves learning how to use files. It’s much more involved than EEPROM. The are probably examples that can help, but there’s a lot to learn. Flash memory wears out from writes. Google it. SP...
by tele_player
Mon Feb 12, 2018 7:06 am
Forum: ESP32 Arduino
Topic: Saving and writing to eeprom
Replies: 25
Views: 58495

Re: Saving and writing to eeprom

Also worth mentioning, in the real world, data saved like this would usually have additional info saved indicating the version of the data. As your program evolves, it’s not unlikely that the data structures will change, and a previous ‘save’ will be incorrectly read by the new version. As is, you’l...
by tele_player
Mon Feb 12, 2018 6:55 am
Forum: ESP32 Arduino
Topic: Saving and writing to eeprom
Replies: 25
Views: 58495

Re: Saving and writing to eeprom

Yes, but it is bad practice to use a constant like 36. Better to use sizeof(player), let the compiler do the work. And if it was me, I wouldn’t use EEPROM for data which will be written frequently. The esp32 EEPROM is a fixed region of the flash, and has a finite number of writes before it goes bad....
by tele_player
Mon Feb 12, 2018 6:09 am
Forum: ESP32 Arduino
Topic: Saving and writing to eeprom
Replies: 25
Views: 58495

Re: Saving and writing to eeprom

Hint:

EEPROM.put(0, player);
EEPROM.put(sizeof(player), slots);

And something similar for get().
by tele_player
Mon Feb 12, 2018 5:44 am
Forum: ESP32 Arduino
Topic: Saving and writing to eeprom
Replies: 25
Views: 58495

Re: Saving and writing to eeprom

No offense intended, but It looks like you have fundamental misunderstanding of how the EEPROM library works. Are you able to understand the code in EEPROM.h and EEPROM.h? Specifically, I see misuse of the ‘address’ argument to the get() and put() methods. Writing the player structure to address 0, ...
by tele_player
Sun Feb 11, 2018 7:06 pm
Forum: ESP32 Arduino
Topic: WiFi - Static IP fails to connect wifi
Replies: 9
Views: 14793

Re: WiFi - Static IP fails to connect wifi

It's working here. I just added the lines above (IPAddress and WiFi.config() ) to a working WiFi HTTP server sketch, and device is properly operating with static IP. To further verify, I used various IP addresses which were definitely never assigned by my DHCP server. What might be different? Router...
by tele_player
Fri Feb 09, 2018 12:07 am
Forum: ESP32 Arduino
Topic: Code help
Replies: 3
Views: 5450

Re: Code help

You will increase your chance of getting help if you describe what you have tried, and what you have seen.
Does it compile cleanly? If not, what error message do you see?
Does it run, but not correctly?
by tele_player
Thu Feb 01, 2018 9:39 pm
Forum: ESP32 Arduino
Topic: esp32 running basic WiFi code, I get "Hmmm...can’t reach this page"
Replies: 9
Views: 15053

Re: esp32 running basic WiFi code, I get "Hmmm...can’t reach this page"

Since the disconnect happens after the connection works for some time, I would not think there is anything inherently wrong with your password.
by tele_player
Mon Jan 29, 2018 7:12 pm
Forum: ESP32 Arduino
Topic: esp32 running basic WiFi code, I get "Hmmm...can’t reach this page"
Replies: 9
Views: 15053

Re: esp32 running basic WiFi code, I get "Hmmm...can’t reach this page"

Well, we are running different SDK version, and different hardware revision. I don’t know if either of these can explain what you are seeing.
by tele_player
Sun Jan 28, 2018 5:01 am
Forum: ESP32 Arduino
Topic: esp32 running basic WiFi code, I get "Hmmm...can’t reach this page"
Replies: 9
Views: 15053

Re: esp32 running basic WiFi code, I get "Hmmm...can’t reach this page"

Interesting, and I can’t think of an explanation. I’ll try to duplicate it here. When it becomes unavailable, does reset get it back, or does it need power cycle? Update: mine has been running about 12 hours, no problem connecting, continuous ping with no missed responses. No problem accessing the w...