Hi there,
I am trying to “publish” this data onto the particle IoT and I am having some trouble. This is my first project so I don’t know the language that well, the error it comes up with is " Expected Primary Expression Before Const, Event and Data" (the ones in Bold)
Any Help is Much appreciated
Simeon
int D = A4;
int val = 0;
const char *eventName = "Pressure";
int data = val;
void setup() {
}
void loop() {
val = analogRead(D)/25-20;
delay(100);
Particle.publish(**const** char *eventName const char data);
Particle.publish(**String** eventName, String **data**);
}