Hi all. I used curl to schedule a downlink to my MKR WAN 1300 with no problems. Now what I would like to do is provide a means of scheduling a downlink by having a button say on a page which would be part of the application. (The idea is that occasionally a command may need to be sent to the endpoint). I have tried using an XMHLHttpRequest but get a CORS error as noted in various posts elsewhere, so that is not an option, I believe.
I tried looking at running curl from a php file, but can’t seem to get anywhere. I tried:
How did you do this - because if that worked, it could be called by your button - it would be useful to know what sort of application the button would be on.
curl -v -X POST --data "{\"dev_id\":\"a86xxxxxxxxxx\",\"payload_raw\":\"Ag==\"}" https://integrations.thethingsnetwork.org/ttn-eu/api/v2/down/mkrwan1300a8610a3237397a01/sendvalvestatus?key=ttn-account-v2.lYA16-TFHQZgyuRnS7xxxxxxxxxxxxxx
Yes, I agree it should as ‘simply’ then be able to be called by a button on an html page.
At the moment, I’m just trying to enable the simplest means of causing this curl command to execute without the command line so that a user can action it from an application - for now just a form button.