so I am using XBEE 3G to send data as JSON to a PostgreSQL database on AWS using TX IPv4
however, I don’t know how to construct the payload
the example provided by digi consists of simple HTTP GET
what I want is HTTP POST and other parameters like host, key, etc…
also how to wite the data in JSON format
Hi
thanks for answering
I know how to create a simple POST request
my problem is:
1- how to do the authentication with the database?
2- how to post in JSON format
As for the JSON, as far as the radio is concerned, it is nothing more than data. You simply save the file as you desire and send it just like any other file.
To make this more clear, the radio does not have a file system or support different languages. It can do simple POSTS, GETS Etc. But if you want to do more ,then you need to include the desired functions or code within your application.