MCPcopy Create free account
hub / github.com/blinker-iot/blinker-js / example.ts

File example.ts

example/example.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { BlinkerDevice } from '../lib/blinker';
2import { ButtonWidget, TextWidget, RangeWidget, NumberWidget, RGBWidget, JoystickWidget, ChartWidget, ImageWidget } from '../lib/widget';
3
4let device = new BlinkerDevice(/*您申请到的Secret Key*/, // 设备authkey

Callers

nothing calls this directly

Calls 15

randomColorFunction · 0.85
addWidgetMethod · 0.80
readyMethod · 0.80
logMethod · 0.80
vibrateMethod · 0.80
pushMethod · 0.80
turnMethod · 0.80
text1Method · 0.80
showMethod · 0.80
saveTsDataMethod · 0.80
randomNumberFunction · 0.70
turnSwitchFunction · 0.70

Tested by

no test coverage detected