Expand description
§Haltian Community SDK
A comprehensive no-std Rust SDK for Haltian Thingsee IoT devices and gateways. This library provides type-safe serialization and deserialization of all device messages and commands using the serde ecosystem.
Unofficial product, not affiliated with Haltian Company
§Supported Devices
| Device | Model Code | Description |
|---|---|---|
| Thingsee AIR | TSAR01/TSAR02 | Air quality sensors (CO2, TVOC, temperature, humidity) |
| Thingsee ANGLE RUGGED | TSAN01 | Angle measurement sensors |
| Thingsee BEAM | TSTF04 | Distance measurement sensors |
| Thingsee COUNT | TSAP01 | People counting sensors |
| Thingsee ENVIRONMENT | TSEN01/TSRU01/TSRU02/TSPD04 | Environmental sensors |
| Thingsee GATEWAY | TSGW05/TSGW06 | Gateway devices |
| Thingsee LEAKAGE RUGGED | TSLK01/TSLK02 | Leakage detection sensors |
| Thingsee POWERCOVER | TSPC01 | Power supply accessories |
| Thingsee PRESENCE | TSPR04 | Presence detection sensors |
| Haltian RADAR | TSRA01 | Radar-based occupancy sensors |
§Quick Start
Add this to your Cargo.toml:
[dependencies]
haltian-sdk = "0.1"§Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Re-exports§
Modules§
Structs§
- Accelerometer
Data - Accelerometer data (3-axis)
- Cellular
Signal - Cellular signal quality parameters
Enums§
- Device
Model - Device model codes for different Thingsee devices
- Sensor
Status - Common sensor status values
- TsmEvent
- Thingsee Message (TSM) Event types
Type Aliases§
- Angle
- Angle in degrees (0-360)
- Battery
Level - Battery level representation (0-100%)
- Binary
Type - Binary type identifier
- Binary
Version - Binary version string
- Co2Level
- CO2 concentration in ppm
- Distance
- Distance in millimeters
- Hardware
Id - Hardware ID string
- Humidity
- Humidity percentage (0-100% with 0.1% precision)
- Light
Level - Light level in lux
- Pressure
- Pressure in hPa (with 0.01 hPa precision)
- Product
Serial Number - Product serial number
- Radio
Power - Radio power value
- Radio
Power Dbm - Radio power in dBm
- Resistance
- Resistance value for leakage detection
- Rssi
- Raw RSSI value
- RssiDbm
- RSSI value in dBm
- Software
Version - Software version string
- Temperature
- Temperature in Celsius (with 0.1°C precision)
- Tuid
- Thing Unique Identifier
- Tvoc
Level - TVOC concentration in ppb