Step 2 - Add a data logger

Now that you have an Atman IoT platform account and you’ve logged on, please feel free to familiarize yourself with it.

tip

Please don’t hesitate to ask for help at any point

Registering a new data logger#

Our next task is to register with the platform a data logger that will be forwarding the data to the platform. This can be done by selecting the “Data Loggers” option on the main menu and then selecting the “New Data logger” button.

alt "Atman IoT – New Data logger Adding a new data logger

At present, there are two different modes of data transport supported:

  • CSV or XML over FTP
  • Web service

We will be using on the second option in this guide. Please refer to our documentation for a detailed instructions on using the first option. In order to add a new data logger select the “Web Service” radio button and then click on the “Save” button.

After adding the data logger to the platform, you will be able to view it on the “Data Loggers” menu. By clicking on the “Details” button, you can get the required credentials (authentication token and id) for sending data from your device to Atman IoT.

alt "Atman IoT – New Data logger Data logger - Details

Setting up your device#

Once you have completed the above task, it’s time to setup your device to send data to Atman IoT API. Your device will need to send data by using the following end point:

API url:

https://atman-iot.com/api/data-logger/data/id/{id}/token/{dataLoggerToken}

Method: POST

Request Body:

{
"manufacturer": "string",
"devices": [
{
"model": "string",
"serialNo": "string",
"channels": [
{
"name": "string",
"unit": "string",
"floatData": [
{
"period": 0,
"measurement": 0,
"timestamp": "2019-08-24T14:15:22Z"
}
]
}
]
}
]
}

You can use the following code to test the connection:

# You can also use wget
curl -X POST https://atman-iot.com/api/data-logger/data/id/{id}/token/{dataLoggerToken} \
-d REQUEST_BODY -H 'Content-Type: application/json'

Please refer to our API documentation for detailed end point and object specifications as well as code samples in a number of programming languages.

For testing the end point, you can always use our API playground.

tip

In the case that your data logger has a pre-confugured web service, that cannot be changed, we can always create a custom end point for you. Please let us know your requirements