tttapa / ESP8266

Documentation and help with the ESP8266 chip/boards/modules
GNU General Public License v3.0
651 stars 282 forks source link

Accessing SPIFFS file to connect to thingSpeak #50

Open gbenna opened 5 years ago

gbenna commented 5 years ago

This is an AWESOME tutorial, thank you. Could you help me? I am using wifiManager and FS.h and ArduinoJson with ESP8266-01 to enter new IP address and Password. This works great. I also create a custom parameter (thingSpeak Write API, apiKey[20]="";) which is entered on the same page as the IP and Password and it is supposedly saved to a SPIFFS file. Once my upload is finished everything connects to the wifi and thingSpeak and uploads my sensor info. However if the power to the ESP is interrupted then I can get the ESP to reconnect but it doesn't upload sensor data anymore. How do I access the SPIFFS data and copy the (thingSpeak Write API) to char apiKey[20]=""; so it can continue uploading information.