when trying to enable the webhook towards initial state i keep getting the following error;
{"data":"{\"code\":\"BadRequestError\",\"message\":\"Request doesn't contain events\"}","ttl":"60","published_at":"2016-05-17T15:52:02.046Z","coreid":"xxxxx","name":"hook-response/pool-pressure/0"}
following this guide:
triggering with this publish
int led = D0;
// pressure sensor is connected to vin/gnd/A0
void setup() {
// initialize serial communications at 9600 bps:
Serial.begin(9600);
pinMode(led, OUTPUT);
}
void loop() {
float sensorVoltage = analogRead(0); // read the sensor voltage
int psi = ((sensorVoltage-95)/204)*50-128; //run the math to correct for voltage issues
String data = String(psi);
Serial.println (sensorVoltage);
delay (10000);
Particle.publish("pool-pressure", String(psi));
Particle.publish("pool-pressure", data, PRIVATE);
digitalWrite(led, HIGH);
delay(1000);
digitalWrite(led, LOW);
}