Antares
Antares
en
en
  • Getting Started
    • Account Registration
    • Create App
    • Add Devices to the Application
    • Installation Board and Library
      • ESP8266
      • ESP32
      • STM32
    • Arduino IDE Installation
    • Arduino Library Installation
      • Antares LoRaWAN
      • Antares Wi-Fi HTTP
      • Antares Wi-Fi MQTT
      • DHT11 Sensor Library
      • Adafruit SSD1306
    • STM32 Cube IDE Installation
    • Expansion Pack I-CUBE-LRWAN Installation
    • Software Installation
      • MQTTX Installation
      • Postman Installation
      • Operating System (OS) on SD Card Installation
    • Quickstart
  • Antares Insight Hub
    • Getting Started
      • Request Demo
      • Request Free Trial
    • Usecase
      • Power Meter
        • Power Meter Usecase Prerequisites
        • Power Meter Device Recommendation
        • Payload Example Power Meter
        • Setup Device Threshold Power Meter
      • Water Meter
        • Water Meter Usecase Prerequisites
        • Water Meter Device Recommendation
        • Payload Example Water Meter
        • Setup Device Threshold Water Meter
      • Water Level
        • Water Level Usecase Prerequisites
        • Water Level Device Recommendation
        • Payload Example Water Level
        • Setup Device Threshold Water Level
      • Environment Monitoring
        • Prerequisites for Use of Environmental Monitoring
        • Environment Monitoring Device Recommendation
        • Payload Example Environment Monitoring
        • Setup Device Threshold Environment Monitoring
    • Settings
      • Manage Alert Recipient (Telegram)
      • Manage User
      • Roles
  • Subscription and Payment
    • Platform
      • How to Use Platform Packages
      • How to Purchase a Platform Subscription
        • Payment Using Antares Coins
        • Payment Using Virtual Account
          • Mandiri Bank
          • Permata Bank
          • BRI Bank
          • BNI Bank
        • Payment Using e-Wallet (LinkAja)
        • Payment Using Credit Cards (CC)
      • Procedure for Renewing a Platform Subscription
      • Procedure for Changing Platform Subscription
    • Connectivity
      • How to Use Connectivity Packages
      • How to Purchase a Connectivity Subscription
        • Payment Using Antares Coins
        • Payment Using Virtual Account
          • Mandiri Bank
          • Permata Bank
          • BRI Bank
          • BNI Bank
        • Payment Using e-Wallet (LinkAja)
        • Payment Using Credit Cards (CC)
      • Procedure for Renewing a Platform Subscription
      • Procedure for Changing Connectivity Subscription
    • Antares Coins
      • Antares Coins Top Up Payment Procedures
        • Payment Using Virtual Account
          • Mandiri Bank
          • Permata Bank
          • BRI Bank
          • BNI Bank
        • Payment Using e-Wallet (LinkAja)
        • Payment Using Credit Cards (CC)
  • Code and library examples
    • ESP8266 (Wi-Fi)
      • General Prerequisites ESP8266 Wi-Fi
      • ESP8266 (Wi-Fi) HTTP Protocol
        • Sending Simple Data to Antares with HTTP Protocol
        • Retrieve the Last Data from Antares Server with HTTP Protocol
        • Simple Project ESP8266 HTTP Antares
          • Periodic Post DHT 11 Data
          • Post DHT 11 Data with Push Button
          • Post DHT 11 data and Display on OLED
          • Get Data displayed on OLED
          • Post and Get DHT 11 Data displayed on OLED
          • Controlling Relays and LEDs Through Get Commands
      • ESP8266 (Wi-Fi) MQTT Protocol
        • Sending Simple Data to Antares with the MQTT Protocol
        • Retrieve Last Data from Antares Server with MQTT Protocol
        • Simple Project ESP8266 MQTT Antares
          • Periodic Send DHT 11 Data
          • Send DHT 11 Data with Push Button
          • Send DHT 11 data and display on OLED display
          • Retrieve Data displayed on OLED Display
          • DHT 11 Send Data and Retrieve Data displayed on OLED Display
          • Controlling Relays and LEDs Through Get Commands
    • Arduino Uno
      • Arduino IDE Installation
      • Antares Ethernet Shield Library Installation
      • Configuration
      • Send Simple Data to Antares
    • ESP32 (Wi-Fi)
      • General Prerequisites ESP32 Wi-Fi
      • ESP32 (Wi-Fi) HTTP Protocol
        • Sending Simple Data to Antares with HTTP Protocol
        • Retrieve the Last Data from Antares Server with HTTP Protocol
        • Simple Project Lynx-32 HTTP Antares
          • Periodic Post DHT 11 Data
          • Post DHT 11 Data with Push Button
          • Post DHT 11 Data and Display on OLED
          • Get Data displayed on OLED
          • Post and Get DHT 11 Data displayed on OLED
          • Controlling Relays and LEDs Through Get Commands
      • ESP32 (Wi-Fi) MQTT Protocol
        • Sending Simple Data to Antares with the MQTT Protocol
        • Retrieve Last Data from Antares Server with MQTT Protocol
        • Simple Project Lynx-32 MQTT Antares
          • Periodic Send DHT 11 Data
          • Send Data DHT 11 dengan Push Button
          • Send DHT 11 Data and Display on OLED
          • Retrieve Data displayed on OLED Display
          • DHT 11 Send Data and Retrieve Data displayed on OLED
          • Controlling Relays and LEDs Through Retrieve Commands
      • HTTP & MQTT Protocol
    • ESP32 (LoRa)
      • General Prerequisites ESP32 LoRa
      • Sending Simple Data to Antares
      • Project Simple Lynx-32 LoRa Antares
        • Uplink DHT11 Data Periodically
        • Uplink Data DHT11 dengan Push Button
        • Uplink DHT11 Data and Display on OLED Display
        • Downlink Data Displayed on OLED
        • DHT 11 Uplink Data and Downlink Data displayed on OLED
        • Controlling Relay and LED via Downlink Command
      • LoRaWAN Class
    • STM32 (LoRa) STM32Cube IDE
      • General Prerequisites STM32 (LoRa) STM32Cube IDE
      • Sending Simple Data to Antares
    • STM32 (LoRa) Arduino IDE
      • General Prerequisites STM32 (LoRa) Arduino IDE
      • Sending Simple Data to Antares
    • Raspberry Pi
      • GUI (Graphical User Interface)
        • Raspberry GUI General Prerequisites
        • Sending Data Using Node.js
        • Temperature and Humidity Monitoring Using DHT11 Sensor
      • SSH (Secure Shell)
        • Common Raspberry SSH Prerequisites
        • Sending Data Using Node.js
        • Temperature and Humidity Monitoring Using DHT11 Sensor
    • NB-IoT
      • NB-Lynx-7000
        • General Prerequisites NB-Lynx-7000
        • Sending Simple Data to Antares
        • Retrieving GNSS (Global Navigation Satellite System) Data
      • NB-Lynx-95
        • General Prerequisites NB-Lynx-95
        • Sending Simple Data to Antares
    • Android
      • Retrieve data from ANTARES using Android
      • Coding Stuff
    • MIT App Inventor
    • Node-RED
    • Postman
    • MQTT | Push data to Device
    • HTTP | Subscribe and Notify Mechanism
    • PHP Library
    • MQTT | Subscribe LoRa Device
    • LoRaWAN | Downlink Tutorial
    • LoRaWAN Device Register
      • Register Menu
    • GPS TrackerID
  • Data Model
  • Port Configuration
  • API | HTTP
    • Device
    • Data of Device
    • Subscriber
  • API | MQTT
    • Device
    • Subscriber
  • List of Acronyms
  • Relevant Software
Powered by GitBook
On this page
  • Store Data of a Particular Device
  • Retrieve all Data Content of Device
  • Retrieve All Data ID of Device
  • Retrieve Particular Data of Device
  • Retrieve Latest Data
  • Retrieve Oldest Data
  1. API | HTTP

Data of Device

Store Data of a Particular Device

  • Request

Field

Value

URL

https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name or https://platform.antares.id:8443/~/antares-cse/your-device-ID/ Note: ID-device-anda must be starting with CNT. e.g. CNT-842419289

Method

POST

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/json;ty=4

Accept

application/json

Body

{
  "m2m:cin": {
    "con": "{\"key1\":\"integer-value\", \"key2\":\"string-value\", \"keyN\":\"valueN\"}"
  }
}

Field

Value

URL

https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name or https://platform.antares.id:8443/~/antares-cse/your-device-ID/ Note: ID-device-anda must be starting with CNT. e.g. CNT-842419289

Method

POST

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/xml;ty=4

Accept

application/xml

Body

<?xml version="1.0" encoding="UTF-8" ?>
<root>
	<m2m:cin>
		<con>{"key1":"integer-value", "key2":"string-value", "keyN":"valueN"}</con>
	</m2m:cin>
</root>

Note!! Key adalah nama variable sedangkan value adalah nilai dari variable tersebut.

  • Response

{
    "m2m:cin": {
        "rn": "cin_893238184",
        "ty": 4,
        "ri": "/antares-cse/cin-893238184",
        "pi": "/antares-cse/cnt-995741382",
        "ct": "20191119T180722",
        "lt": "20191119T180722",
        "st": 0,
        "cnf": "text/plain:0",
        "cs": 62,
        "con": "{\"key1\":integer-value, \"key2\":\"string-value\", \"keyN\":\"valueN\"}"
    }
}
<?xml version="1.0" encoding="UTF-8"?>
<m2m:cin xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/
xml/protocols/homedomain" rn="cin_178578843">
    <ty>4</ty>
    <ri>/antares-cse/cin-178578843</ri>
    <pi>/antares-cse/cnt-995741382</pi>
    <ct>20191119T171604</ct>
    <lt>20191119T171604</lt>
    <st>0</st>
    <cnf>text/plain:0</cnf>
    <cs>100</cs>
    <con><obj>
        <num key1="value1"/>
        <str key2="value2"/>
        <bool keyN="valueN"/>
    </obj></con>
</m2m:cin>

Retrieve all Data Content of Device

  • Request

Field

Value

URL

https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name?fu=1&drt=2&ty=4 or https://platform.antares.id:8443/~/antares-cse/your-device-ID?fu=1&drt=2&ty=4 Note: ID-device-anda must be starting with CNT. e.g. CNT-842419289

Method

GET

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/json

Accept

application/json

Field

Value

URL

https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name?fu=1&drt=2&ty=4 or https://platform.antares.id:8443/~/antares-cse/your-device-ID?fu=1&drt=2&ty=4 Note: ID-device-anda must be starting with CNT. e.g. CNT-842419289

Method

GET

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/xml

Accept

application/xml

  • Response

{
    "m2m:list": [
        {
            "m2m:cin": {
                "rn": "cin_zTLhcucd8f4OHqwBnKTH7OctolTORJKu",
                "ty": 4,
                "ri": "/antares-cse/cin-zTLhcucd8f4OHqwBnKTH7OctolTORJKu",
                "pi": "/antares-cse/cnt-eSGc7dlEqLPzfee3",
                "ct": "20230320T075808",
                "lt": "20230320T075808",
                "st": 0,
                "cnf": "text/plain:0",
                "cs": 14,
                "con": "{"status":"0"}"
            }
        }
    ]
}
<?xml version="1.0" encoding="UTF-8"?>
<m2m:list xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/xml/protocols/homedomain%22%3E
    <m2m:cin rn="cin_zTLhcucd8f4OHqwBnKTH7OctolTORJKu">
        <ty>4</ty>
        <ri>/antares-cse/cin-zTLhcucd8f4OHqwBnKTH7OctolTORJKu</ri>
        <pi>/antares-cse/cnt-eSGc7dlEqLPzfee3</pi>
        <ct>20230320T075808</ct>
        <lt>20230320T075808</lt>
        <st>0</st>
        <cnf>text/plain:0</cnf>
        <cs>14</cs>
        <con>{&#34;status&#34;:&#34;0&#34;}</con>
    </m2m:cin>
</m2m:list>

Retrieve All Data ID of Device

  • Request

Field

Value

URL

https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name?fu=1&ty=4&drt=1 or https://platform.antares.id:8443/~/antares-cse/your-device-ID?fu=1&ty=4&drt=1 Note: ID-device-anda must be starting with CNT. e.g. CNT-842419289

Method

GET

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/json

Accept

application/json

Field

Value

URL

https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name?fu=1&ty=4&drt=1 or https://platform.antares.id:8443/~/antares-cse/your-device-ID?fu=1&ty=4&drt=1 Note: ID-device-anda must be starting with CNT. e.g. CNT-842419289

Method

GET

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/xml

Accept

application/xml

  • Response

{
    "m2m:uril": [
        "/antares-cse/antares-id/nama-aplikasi-anda/nama-device-anda/cin_893238184",
        "/antares-cse/antares-id/your-aplikasi-anda/nama-device-anda/cin_178578843"
    ]
}
<?xml version="1.0" encoding="UTF-8"?>
<m2m:uril xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/
xml/protocols/homedomain">/antares-cse/antares-id/nama-application-anda/nama-device-anda/cin_893238184 
/antares-cse/antares-id/nama-aplikasi-anda/nama-device-anda/cin_178578843</m2m:uril>

Retrieve Particular Data of Device

  • Request

Field

Value

URL

https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/data-from-device-ID or

Method

GET

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/json

Accept

application/json

Field

Value

URL

https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/data-from-device-ID or

Method

GET

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/xml

Accept

application/xml

  • Response

Result

{
    "m2m:cin": {
        "rn": "cin_893238184",
        "ty": 4,
        "ri": "/antares-cse/cin-893238184",
        "pi": "/antares-cse/cnt-995741382",
        "ct": "20191119T180722",
        "lt": "20191119T180722",
        "st": 0,
        "cnf": "text/plain:0",
        "cs": 62,
        "con": "{\"key1\":integer-value, \"key2\":\"string-value\", \"keyN\":\"valueN\"}"
    }
}

Result

<?xml version="1.0" encoding="UTF-8"?>
<m2m:cin xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/
xml/protocols/homedomain" rn="cin_893238184">
    <ty>4</ty>
    <ri>/antares-cse/cin-893238184</ri>
    <pi>/antares-cse/cnt-995741382</pi>
    <ct>20191119T180722</ct>
    <lt>20191119T180722</lt>
    <st>0</st>
    <cnf>text/plain:0</cnf>
    <cs>62</cs>
    <con>{"key1":integer-value, "key2":"string-value", "keyN":"valueN"}</con>
</m2m:cin>

Retrieve Latest Data

  • Request

Field

Value

URL

https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/la

Method

GET

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/json;ty=4

Accept

application/json

Field

Value

URL

https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/la

Method

GET

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/xml;ty=4

Accept

application/xml

  • Response

Result

{
    "m2m:cin": {
        "rn": "cin_893238184",
        "ty": 4,
        "ri": "/antares-cse/cin-893238184",
        "pi": "/antares-cse/cnt-995741382",
        "ct": "20191119T180722",
        "lt": "20191119T180722",
        "st": 0,
        "cnf": "text/plain:0",
        "cs": 62,
        "con": "{\"key1\":integer-value, \"key2\":\"string-value\", \"keyN\":\"valueN\"}"
    }
}

Result

<?xml version="1.0" encoding="UTF-8"?>
<m2m:cin xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/
xml/protocols/homedomain" rn="cin_893238184">
    <ty>4</ty>
    <ri>/antares-cse/cin-893238184</ri>
    <pi>/antares-cse/cnt-995741382</pi>
    <ct>20191119T180722</ct>
    <lt>20191119T180722</lt>
    <st>0</st>
    <cnf>text/plain:0</cnf>
    <cs>62</cs>
    <con>{"key1":integer-value, "key2":"string-value", "keyN":"valueN"}</con>
</m2m:cin>

Retrieve Oldest Data

  • Request

Field

Value

URL

https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/ol

Method

GET

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/json;ty=4

Accept

application/json

Field

Value

URL

https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/ol

Method

GET

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/xml;ty=4

Accept

application/xml

  • Response

Result

{
    "m2m:cin": {
        "rn": "cin_178578843",
        "ty": 4,
        "ri": "/antares-cse/cin-178578843",
        "pi": "/antares-cse/cnt-995741382",
        "ct": "20191119T171604",
        "lt": "20191119T171604",
        "st": 0,
        "cnf": "text/plain:0",
        "cs": 100,
        "con": "<obj>\n
                    <num key1=\"value1\"/>\n
                    <str key2=\"value2\"/>\n        
                    <bool keyN=\"valueN\"/>\n
                </obj>"
    }
}

Result

<?xml version="1.0" encoding="UTF-8"?>
<m2m:cin xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/
xml/protocols/homedomain" rn="cin_178578843">
    <ty>4</ty>
    <ri>/antares-cse/cin-178578843</ri>
    <pi>/antares-cse/cnt-995741382</pi>
    <ct>20191119T171604</ct>
    <lt>20191119T171604</lt>
    <st>0</st>
    <cnf>text/plain:0</cnf>
    <cs>100</cs>
    <con><obj>
        <num key1="value1"/>
        <str key2="value2"/>
        <bool keyN="valueN"/>
</obj></con>
</m2m:cin>
PreviousDeviceNextSubscriber

Last updated 8 months ago

https://platform.antares.id:8443/~/antares-cse/data-from-device-ID Note: data-from-device-ID merupakan salah satu yang didapatkan ketika harus diawali dengan cin. e.g. cin-122882447

https://platform.antares.id:8443/~/antares-cse/data-from-device-ID Note: data-from-device-ID merupakan salah satu yang didapatkan ketika harus diawali dengan cin. e.g. cin-122882447

Retrieving All Data of Device ID.
Retrieving All Data of Device ID.