Thank you @ScruffR for the reply.
I am having a couple of issues.
First issue is that I need to be able to compile and create a firmware binary. The file I get after clicking that button in Particle IDE, does not upload in the Dashboard (dashboard.particle.io) to deploy to multiple Photons under the product area. I get an error message, stating it is not a binary file.
I am attempting to run a pilot on three hardware devices. Because the export of the binary file does not work, I am attempting to get all the include files and create firmware. For example below is the error if I use another compiler like Arduino IDE:
Arduino: 1.6.8 (Mac OS X), Board: "Arduino/Genuino Uno"
In file included from /Users/Farah/sketch_aug11a/sketch_aug11a.ino:2:0:
sketch/RelayShield/RelayShield.h:1:25: fatal error: application.h: No such file or directory
#include "application.h"
^
compilation terminated.
exit status 1
Error compiling for board Arduino/Genuino Uno.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
When compliled/verified in the Particle IDE I get the following errors:
In file included from firstapp.cpp:2:0:
RelayShield/RelayShield.h:26:8: warning: extra tokens at end of #endif directive [enabled by default]
#endif RelayShield_h
^
firstapp.cpp:5:0: warning: ignoring #pragma SPARK_NO_PREPROCESSOR [-Wunknown-pragmas]
#pragma SPARK_NO_PREPROCESSOR
^
firstapp.cpp: In function 'void loop()':
firstapp.cpp:125:19: error: 'chargeBattery' was not declared in this scope
chargeBattery();
^
make[1]: *** [../build/target/user/platform-6firstapp.o] Error 1
make: *** [user] Error 2
Error: Could not compile. Please review your code.
While the Particle IDE just warns me about the include files, it still means nothing because when I tried to upload the binary I get an error that it is not a valid file and that is it. So I must try to collect all the files and learn how to create a binary by another means.
When I search the library in the Particle IDE they do not come up. For example, within the same code, I use the Particle Relay code. And for that to work, I had to include them from the library. So I do not understand why I wouldn’t have to include the folders for the softap HTTP.
I found the following on GitHub - is it trustworthy? https://github.com/OpenFOAM/OpenFOAM-2.2.x/blob/master/src/lagrangian/basic/particle/particle.H
The code I ran before including softap worked perfectly fine no errors.
However, I do see that my function void loop has an issue. But that issue did not exist until I added the softap code. To debug why this would be happening I pasted in one line of code at at time (my original code and the softap code). And when I got to the void loop errors starting appearing. My softap code is before the void loop.
So even if I fix the void loop error, I still cannot get a binary to do a firmware update across multiple devices in my Dashboard (dashboard.particle.io), so I need the include files to determine what is going on.
Have you ever used the “Compile and download firmware binary.” button in Particle IDE? It doesn’t work for me, even with the code compiles and is uploaded to the Photon.
All three Photons are on 0.5.2. I am using a Mac if that matters.
Note: I am hesitant to post all of my code as I am trying to use it for a product. However, I am not having much success so I am not confident in using this in a consumer product.
Thank you in advance for any insight.