Initialize the SDK once using the singleton pattern for production applications
Configure the SDK using MACHHUB Designer Extension for VS Code
Note: Ensure the MACHHUB Designer Extension is installed and configured in your VS Code workspace before using this method.
Type-safe configuration options for the SDK
Initialize once, use everywhere
Never access SDK directly from components
Reusable base class for all services
Example inventory service with custom methods
{"Table":"app_id.collection","ID":"record_id"}All record fields follow the same format pattern
{"Table":"myapp.categories","ID":"CAT-001"}User management and access control
Database operations with querying capabilities
Real-time tag management and subscription
Historical data retrieval and analysis
Initialize and configure the SDK
Initializes the SDK with the provided configuration.
Fluent interface for database operations with method chaining
Subscribe to and publish real-time tag data
Access and analyze historical tag data
Production-ready example using singleton pattern and service layer
Available types exported from @machhub-dev/sdk-ts
Production-ready service for analyzing historical sensor data
Always wrap SDK calls in try-catch blocks for robust applications
Automatic type inference for collection operations
Type-safe service methods with generics
Compile-time validation for query operators
Full IntelliSense support for all SDK methods
MACHHUB SDK - Empowering Industrial IoT Integrations