We have several devices in the "field" that upload data to our FTP server and we ingest the data from there. We are looking to try more of an "API" route and have our embedded C and linux devices use HTTPS posts to send the data up.
Then have our devices send data via json? xml? ??
and have a PHP script ingest the data into our database.
So connect to https://ingest.api.example.com
Field Unit Type: X1
So my question is, are we walking down the right path for a secure way to upload to our servers. Second, any example code or preference between json or xml?