Skip to content

Instantly share code, notes, and snippets.

@lizhineng
Last active October 29, 2024 06:01
Show Gist options
  • Save lizhineng/7d172feea28b7796a70df3d886b5d943 to your computer and use it in GitHub Desktop.
Save lizhineng/7d172feea28b7796a70df3d886b5d943 to your computer and use it in GitHub Desktop.
Communication with AIRMX MQTT server

Host

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. ⚠️ Notices this device id is a identifier from your mobile phone, not the one your AIRMX equipment.

Credentials

username: app_{uid} password: {token}

The data can be retrieved from UserLoggedInfo payload from API.

Subscription Topics

  • airmx/user/{uid}
  • airmx/01/+/+/1/+/{id} // can be grabbed from /app/GET/eagleInfo API

Data Structure

app/GET/snowReport

  • t: Temperature, int, converts it by dividing by 100.
  • h: Relative Humidity: int, converts it by dividing by 100.
  • co2: Co2, int.
  • pm25: PM2.5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment