Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic ESP8266, problem with SPIFFS and FILE objects (Read 5184 times)
rmathis
Junior Member
**
Offline


Posts: 13
Joined: Sep 7th, 2012
ESP8266, problem with SPIFFS and FILE objects
Jun 14th, 2016 at 8:27pm
Print Post  
When trying to use SPIFFS I'm getting errors when trying to access specific functions. Compiler says they do not exist. Such as write and read on the file objects. These compile find in the Arduino environment.

Also, can not use FILE at all, while I can enter it into the source, later in the code when I try to use it the compiler complains that it has not been defined.

I tried to follow the errors and ended up in the FS.h file at the following line:
typedef std::shared_ptr<FileImpl> FileImplPtr;

One more quick question: Is there a way to upload files to the SPIFFS from VisualMicro? Similar to the plugin available for Arduino.exe? 

Thanks!

Ohh. current VisualMicro version: 1.1603.20 - 427
« Last Edit: Jun 14th, 2016 at 8:29pm by rmathis »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266, problem with SPIFFS and FILE objects
Reply #1 - Jun 14th, 2016 at 9:29pm
Print Post  
Hi,

What is the visual micro version "tools>extensions and updates"?

Thanks
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: ESP8266, problem with SPIFFS and FILE objects
Reply #2 - Jun 19th, 2016 at 5:18am
Print Post  
Turned out to be a missing menu item. Thanks for the nudge. Sorry for the delay.

You should see a "vMicro>Publish Data Files" menu item when ESP8266 or Arduino Yun boards are selected.

The files found in a "[Project]\Data" sub folder are uploaded regardless of which files are "Included" in the "Solution Explorer".

Intellisense was using the wrong cplusplus version so the File and SPIFFS commands should work nicely now.

Latest release is 1606.17 Sp3 please see the Release Notes for more information
« Last Edit: Jun 19th, 2016 at 5:21am by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
ElsyKhong1
Newbies
*
Offline


Posts: 1
Location: New York
Joined: Jul 18th, 2016
Re: ESP8266, problem with SPIFFS and FILE objects
Reply #3 - Jul 19th, 2016 at 2:55pm
Print Post  
Hi..i am a new user here. I worked on Arduino during my projects as a hobbyist and as per my knowledge you should try to update the libraries. Once updated then try again. If still you will face the problem then go for the path checking as suggested above. This is the only problem looking from your description.

turnkey pcb assembly
« Last Edit: Mar 26th, 2022 at 8:17pm by ElsyKhong1 »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint