Usage
Getting Started
You can quickly learn how to access generic abilities in your panel app development using basic JavaScript or Ray & SDM integration with the following example code snippets:
Basic use
Here's an example of accessing generic abilities using basic JavaScript:
Ray & SDM
Here's an example of accessing generic abilities using Ray and SDM. By integrating with SDM, you can enjoy better TypeScript type hints and the development experience provided by React Hooks:
src/devices/index.ts
Create a smart device model for the sensor with built-in alarm capability
src/app.tsx
Access the React ecosystem through SdmProvider
src/pages/home.tsx
Fetch the alarm list and display it using TyList