@MarkusL Hi there! So you are using Spark Dev also. If I am not wrong about this. App code was invalid could be cause if there are other files in the very same folder as your .ino file.
MarkusL said:
I just used the Spark Dev app and get "App code was invalid" error.
-
So you might have to create a new empty folder and place your .ino file inside the Spark Dev is quite picky on this. Below is another thread that people, including me, faced the same problems.
community.spark.io
Spark Dev: app code was invalid
@harrisonhjones I was about to do that hahaha. But anyway it is working for me already. Reading @cayuse and @rog3r posts I realize that even .html or .js files cannot be inside as well. The folder must be plain empty except for the .ino file that I am using... Really very picky program hahaha.
- If you have libraries that you need to use that are only available in the Web IDE. Open those files you need and do a copy and paste on to a blank notepad and save it as it's respective type. (Examples like .h or .cpp For your case flash-eeprom.h) Then put this files in the same folder as your .ino file. Then in your .ino file, just simply put a #include "flash-eeprom.h" and it should be working.
Hope this helps