Hello,
I have made a successfully working webhook event that retrieves data from my particle boron and inserts it on an influxdb database I have running on a VPS. The issue is that when I set the delay to less than 250ms on the code that runs on my Particle Boron or when I remove the delay completely then after the first measurement nothing gets inserted anymore on my database. Here is my code:
float analogPin;
String myID;
void setup() {
Serial.begin(9600);
pinMode(A5, INPUT);
myID = Particle.deviceID();
}
void loop() {
analogPin = analogRead(A5);
String data = String::format("{ \"tags\" : {\"id\": \"%s\"},\"values\": {\"temp\": %f}}", myID.c_str(), analogPin);
Particle.publish("db", data, PRIVATE);
delay(250); // The mentioned delay
}
Any idea on whats going wrong? Is it even possible to achieve lowest delay between measurements?
