What I really don’t understand that how I can use this in my publish method:
void loop() {
// Get some data
String data = String(10);
// Trigger the integration
Particle.publish("iot-device-bridge", data, PRIVATE);
// Wait 60 seconds
delay(60000);
}
I have searched the forum and internet, but cannot find a good example howto create the code for that webhook.
I am not convinced you have read all the tutorials and topics on the Particle Forum. You wouldn’t have the event name in the JSON structure like that. Try a search on “mustache”.
A simple test sketch/might look something like this to publish an event called PARTICLE_EVENT_NAME with a value label called PARTICLE_EVENT_VALUE and an integer variable someValue.