This php code stopped to work this january with my Photon (maybe 'cause the new firmware ?).
The args value is no more passed to the function and command = null
If you switch to the html form (post) instead of php, the function works again and command = “SECRET_CODE”
Perhaps it had to do with your payload? If you weren’t sending anything which needed to be URL encoded you are probably good with your old code. What happens if you just try sending the letter a using your old code? How about your new code? How do the requests differ?
I saw issues with sending functions recently too. In my case the code was Scala. Suddenly, url-encoding seems to be required (I had an unencoded “,” in my form parameter). It was an easy fix, but a little baffling at first.
Great question! We recently released an API update that included bringing some of our dependencies current. It’s entirely possible this upgrade had the unintended side effect of creating a need to url-encode arguments to function calls. I vaguely remember this was a problem a long time ago, and we fixed it so you could send special characters as particle function arguments.
I’ll ping the team on this and see what they find.