My webhook still send out the default data (ie ttl, coreId, PublishedAt, name) although I am creating a custom webhook as per WebHook with more then one value
This shows up on the webhook, although I gave no indication for the default attributes to be set:
This is the JSON I am using in the webhook, would sending incorrect json data from Particle.publish() stop the ‘variable forwarding’ function from within the Particle webhook system from working?
Webhook json:
{
"eventName": "RequestBinTest",
"url": "[URL HERE]",
"requestType": "POST",
"json": {
"type": "{{type}}",
"uuid": "{{uuid}}",
"name": "{{name}}",
"systemID": "{{systemID}}",
"deviceType": "{{deviceType}}",
"location": "{{location}}",
"timeStamp": "{{timeStamp}}"
},
"nodefaults": true,
"mydevices": true
}
Data being sent from the Particle:
String publishString = "{\"type\":" + type + ", \"uuid\":" + uuid + ", \"name\":" + name + ", \"systemID\":" + sysID + ", \"deviceType\":" + deviceType + ", \"location\":" + location + ", \"timeStamp\":" + tStamp + "}";
All variables are being wrapped with quotation marks using \"
ie String variable = "\"text\"";
Any ideas what I am doing wrong?
Edit: I’ve noticed the full json (contained within publishString) isn’t being sent, rather it is ‘cut off’ at a point.