2902 2 2
|JoEmbedded private msg quote post Address this user|
I have an account where a data logger sends the collected data as one block (with ultra low power via 2/3/4G) to an intermediate server. From there times/values are extracted and shall be inserted to my account. (Device: clickable text )
The "direct way" works:
However if sending the old data via PHP/JSON I always get "Unsupported Media Type". I tested it with a small sample script:
What am I doing wrong?
Thanks for your help!
|Post 1 IP flag post|
|MikeMills private msg quote post Address this user|
|I think Unsupported Media type means the content-type header needs to be set. Try setting the header: content-type:application/json
Here's a GS Python example: https://www.grovestreams.com/developers/getting_started_helloworld_python.html
|Post 2 IP flag post|