Question: What’s the best practice to access multiple parameters and pass them along in a webhook?
In Blynk 1.0, you could specify {"value1":"/pin[0]/", "value2":"/pin[1]/", "value3":"/pin[2]/"}
In Blynk 2.0, we have device_pinValue to work with; the POST code looks like this: {"value1":"{device_pinValue}", "value2":""{device_pinValue}", "value3":"{device_pinValue}"}
Except, of course, the 3 values should be [0], [1], [2] or something liked that.
On the initiation side, the virtual PIN that triggered it has moved from the app to the cloud, but it would be consistent if the parameters were sent through a code such as: Blynk.virtualWrite(webhookVirtualPIN,value1,value2,value3);
thx. This is the other way around - the link you provide let you update multiple blynk values simultaneously. What’s missing is a way to send out multiple values with a single webhook (without resorting to some hacks).
still new to blynk, is json a workaround (would mean extra data to be pushed from device) but maybe you push one last pin that has aggregate data in json and you then just have the webhook fire on that to pass it all as well?
I do have a follow-up question, @Oleksii-QA : when I wanted to add a 6th webhook, I received a message that I have reached the maximum number of webhooks I can create. I currently have a Plus 20 plan. It would be helpful to, at the very least, be able to create 1 webhook per device, preferably more than 1. I don’t see a limit on the number of webhooks one can create in the documentation. Would you know how one is able to increase this? It would be a real pity if one has to implement workarounds.
is there any limitation for indexing the device_pinValue[X]?
I am not able to send anything device_pinValue[3] higher.
this is an XML feed from ThingSpeak
(I can send device_pinValue[0 or 1 or 2] to any of those fields. Also, I tried to modify the array many times e.g. swap position of values, data type (string/float, etc.). It did not work.)
Anyway, thanks to Blynk staff the Webhook otherwise works flawlessly.