aoj20aThermometer
The AOJ-20A infrared thermometer.
Declared without a write characteristic, because the device sends its reading rather than waiting to be asked: the vendor app has a request for it, calls it from nowhere, and still displays temperatures - so the reply arrives when someone takes a measurement. Not writing also means not polling, which for a spot-check device would otherwise re-report the same reading for as long as the link stayed up.
Only the realtime reply is declared. The stored-history reply shares the header and would need its own case; nothing reads history yet, and a case that decoded it into the same measurement would post old readings as though they had just been taken.
Kind: Function
Package: @ovok/native
Import
import { aoj20aThermometer } from '@ovok/native/bt-management';
TypeScript signatures
(params: AojDeviceParams): CustomDeviceDefinition
| Parameter | Type | Details |
|---|---|---|
params | AojDeviceParams | — |
Returns: CustomDeviceDefinition.
Learn the workflow
Continue with Bluetooth for the workflow context and examples.