PRODUCT_ID(499);
PRODUCT_VERSION(1);
#include "application.h"
#include "HttpClient.h"
HttpClient http;
I am using Particle Dev (Atom 1.7.3) to compile. I can compile for a Photon Device but not for the Electron Device for some reason. Can someone point in the right direction please?
jasonp
June 10, 2016, 1:41am
2
#include "application.h"
#include "HttpClient.h"
PRODUCT_ID(499);
PRODUCT_VERSION(1);
HttpClient http;
I needed to include application.h before the PRODUCT declarations. Hmm? not the case with photon.
Are you using #pragma SPARK_NO_PREPROCESSOR
by any chance?
If so, I’d guess you haven’t used that on the Photon and hence it worked there.
jasonp
June 10, 2016, 4:37pm
4
@ScruffR , No I am not using #pragma SPARK_NO_PREPROCESSOR
. I’m not sure what that is. I guess I may want to find out. Thanks for the input.