Host: tcp://mqtt.airmx.cn:1883
ClientID: amx_{device_id:19}
Android devices: Device ID can be grabbed from the file device_id.xml.xml in shared_prefs folder.
| // The threshold to determine whether the battery is low | |
| const LOW_BATTERY_THRESHOLD = 20 | |
| // The factor to convert TVOC in ppb to μg/m3 | |
| // @see https://leeduser.buildinggreen.com/content/my-device-measures-tvoc-ppb-units-how-do-i-convert-measurements-gm3 | |
| const TVOC_CONVERSION_FACTOR = 3.767 | |
| module.exports = { | |
| init() { | |
| return { |
| { | |
| "index_mode": "v2", | |
| "keys": { | |
| "aggPeriodSeconds": { | |
| "doc_value": true, | |
| "type": "long" | |
| }, | |
| "concurrentRequests": { | |
| "doc_value": true, | |
| "type": "long" |