CTS500
The CTS500, sold as the “Jlyscales CTS500” by Hunan Jinlian Cloud Information Technology Co., Ltd., appears to be a China-made copy of the Tindeq Progressor.
Basic usage
ts
import { CTS500 } from "@hangtime/grip-connect"
const device = new CTS500()
device.notify((data) => console.log(data.current))
await device.connect(
async () => {
console.log("Battery:", await device.battery())
console.log("Model:", await device.model())
console.log("Serial:", await device.serial())
await device.stream(5000)
device.disconnect()
},
(err) => console.error(err),
)Methods
CTS500 supports all shared methods (connect, disconnect, isConnected, notify, active, read, write, download). See Device interface for details.
Device-specific
| Method | Returns | Description |
|---|---|---|
battery() | Promise<string | undefined> | Battery voltage. |
firmware() | Promise<string | undefined> | Firmware version. |
hardware() | Promise<string | undefined> | Hardware version. |
manufacturer() | Promise<string | undefined> | Manufacturer info. |
model() | Promise<string | undefined> | Model number. |
serial() | Promise<string | undefined> | Serial number. |
software() | Promise<string | undefined> | Software version. |
stream(duration?) | Promise<void> | Start automatic weight uploads. |
stop() | Promise<void> | Stop automatic weight uploads. |
temperature() | Promise<string | undefined> | Temperature in Celsius. |
weight() | Promise<number | undefined> | Read the current weight in kilograms. |
zero() | Promise<void> | Update the hardware zero point. |
powerOnReset(enabled) | Promise<void> | Toggle reset-to-zero on power-up. |
peakMode(enabled?) | Promise<void> | Toggle peak hold mode. |
setBaudRate(baudRate) | Promise<void> | Configure the UART baud rate. |
setSamplingRate(rateHz) | Promise<void> | Configure the A/D sampling rate in hertz. |
See Device interface and Guide for connection and streaming.