What is the code needed to have the Photon work as a standard (non-connected) micro?
I have an application that will be tested in an area without an online connection so I do not want the Photon to keep searching for a connection. Rather, I just need it to run its program …
Have you tried searching the forum for terms like
@ScruffR. This search worked. I had tried a different search but the results were all about not being able to connect …
I tried your post in:
First time using a gist, let me know if it works/doesn’t
As soon as I add the following statements,
I get this error:
expected constructor, destructor, or type conversion before ‘(’ token
We’d need to see more of your code to tell.
You can also post a SHARE THIS REVISION link for us to test your exact project.
When I moved the statements from the first lines to later, the code compiled. Is this a bug?
Below are the first lines in the code:
#include <PublishManager.h> //https://github.com/bveenema/PublishManager
using namespace particleftpclient;
ParticleFtpClient ftp = ParticleFtpClient();
What would happen if SYSTEM_THREAD(ENABLED) is not used in the case of no WiFi?
The problem is potentially related to
#include "application.h" (which should now rather be
Since this is usually included at the top of the code by the preprocessor automatically when dealing with
.ino files, you’d not need to include it at all, hence we don’t normally see this kind of issue.
@ScruffR. Will make the change.