Crate haltian_sdk

Crate haltian_sdk 

Source
Expand description

§Haltian Community SDK

Crates.io Documentation

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

DeviceModel CodeDescription
Thingsee AIRTSAR01/TSAR02Air quality sensors (CO2, TVOC, temperature, humidity)
Thingsee ANGLE RUGGEDTSAN01Angle measurement sensors
Thingsee BEAMTSTF04Distance measurement sensors
Thingsee COUNTTSAP01People counting sensors
Thingsee ENVIRONMENTTSEN01/TSRU01/TSRU02/TSPD04Environmental sensors
Thingsee GATEWAYTSGW05/TSGW06Gateway devices
Thingsee LEAKAGE RUGGEDTSLK01/TSLK02Leakage detection sensors
Thingsee POWERCOVERTSPC01Power supply accessories
Thingsee PRESENCETSPR04Presence detection sensors
Haltian RADARTSRA01Radar-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§

pub use devices::*;
pub use error::*;
pub use messages::*;

Modules§

devices
error
messages
tsm_ids
Common TSM ID ranges and constants

Structs§

AccelerometerData
Accelerometer data (3-axis)
CellularSignal
Cellular signal quality parameters

Enums§

DeviceModel
Device model codes for different Thingsee devices
SensorStatus
Common sensor status values
TsmEvent
Thingsee Message (TSM) Event types

Type Aliases§

Angle
Angle in degrees (0-360)
BatteryLevel
Battery level representation (0-100%)
BinaryType
Binary type identifier
BinaryVersion
Binary version string
Co2Level
CO2 concentration in ppm
Distance
Distance in millimeters
HardwareId
Hardware ID string
Humidity
Humidity percentage (0-100% with 0.1% precision)
LightLevel
Light level in lux
Pressure
Pressure in hPa (with 0.01 hPa precision)
ProductSerialNumber
Product serial number
RadioPower
Radio power value
RadioPowerDbm
Radio power in dBm
Resistance
Resistance value for leakage detection
Rssi
Raw RSSI value
RssiDbm
RSSI value in dBm
SoftwareVersion
Software version string
Temperature
Temperature in Celsius (with 0.1°C precision)
Tuid
Thing Unique Identifier
TvocLevel
TVOC concentration in ppb