---
# System prepended metadata

title: MQTT Antam

---

MQTT Antam
--

## Table of Contents

[TOC]

## Topic

### Topic: antam/command

```
{
 
 "tangki": 1,
 "node": 1,
 "activate": true

}

```

### Topic: antam/statusNode

Payload:

```
{
 "timeStamp": 5,
 "tangki": 1,
 "node": 1,
 "status": "inactive"/"active"/"alarm"/"alarmArusRendah"/"alarmArusTinggi"/"alarmTegangan"/"alarmSuhuRendah"/"alarmSuhuTinggi"/"alarmPhRendah"/"alarmPhTinggi"

}

```

### Topic: antam/device

Payload: (with 1 tangki) 

```
{
  "timeStamp": 0,
  "tangkiData":[ 
    
    [
        {"sel": 1, "suhu": 0, "tegangan": 0, "arus": 0, "daya": 0, "energi": 0},
        {"sel": 2, "suhu": 0, "tegangan": 0, "arus": 0, "daya": 0, "energi": 0},
        {"sel": 3, "suhu": 0, "tegangan": 0, "arus": 0, "daya": 0, "energi": 0},
        {"sel": 4, "suhu": 0, "tegangan": 0, "arus": 0, "daya": 0, "energi": 0},
        {"sel": 5, "suhu": 0, "tegangan": 0, "arus": 0, "daya": 0, "energi": 0},
    ],
   
  ]
}
```

### Topic: antam/device/node

Payload: 

```
{
 "timeStamp": 5,
 "tangki": 1,
 "sel": 1,
 "selData": { "suhu": 0, "tegangan": 0, "arus": 0, "daya": 0, "energi": 0},
}
```

Payload Sensor node: 

```
{
 "timeStamp": 7,
 "tangki": 7,
 "sel": 1,
 "selData": { "suhu": 0, "pH": 0},
}
```

Payload  breakdown:
```
{
 "timeStamp": Number,
 "tangki": Number,
 "sel": Number,
 "selData": Object 
}
```

### Topic: antam/status


Payload: 

```
{
     "timeStamp": 0,
     "status": true,
     "alarmTegangan": true,
     "alarmArus": true,
     "alarmSuhu": true,
     "alarmDaya": true,
     "alarmEnergi": true,
}
```

### Topic: antam/statistic


Payload: 

```
{
     "timeStamp": 0,
     "totalWaktu": 0,
     "teganganTotal": 0,
     "arusTotal": 0,
     "power": 0,
     "energi": 0
}
```

