hatters
November 27, 2016, 5:49pm
21
Hi to all
I am using:
https://api.thingspeak.com/update?api_key=XXXXXXXX&field1=/pin/
With web hook and it works.
My question is how to pass additional data to the same to update many fields at once?
For example:
https://api.thingspeak.com/update?api_key=XXXXXXX&field1=/pin/&field2=/ intValue /&metadata={StringValue }
Thanks in advance
Dmitriy
November 27, 2016, 5:57pm
22
Costas
November 27, 2016, 6:02pm
23
Not sure what this means but if you want to post additional variables from the Webhook widget you need to post the variables as an array to the Webhook trigger pin.
Blynk.virtualWrite(Vx, field0, field1, ......fieldn);
then call the array elements in the Webook as /pin[0]/,/pin[1]/,…, /pin[n]/
1 Like
hatters
November 27, 2016, 7:23pm
24
@Dmitriy thanks for the prompt response.
@Costas , thanks - that makes a lot of sense. I will give it a r try
Regards
hatters
November 27, 2016, 7:38pm
25
@Costas ,
Do you mean something like this?
Blynk.virtualWrite(V10 temp,hum);
and this for the webhook
https://api.thingspeak.com/update?api_key=XXXXXXXXX&field1=/pin[0]&field2=/pin[1]/
Regards
Costas
November 27, 2016, 7:41pm
26
hatters
November 27, 2016, 7:42pm
27
Using this one only field2 is being updated. you are right
hatters
November 27, 2016, 7:43pm
28
GREAT. It works now. Thanks for the help Costas
1 Like