@beetech-autoid/smartsdk-client
v1.0.5
Published
Universal TypeScript/JavaScript client library for Beetech Universal RFID Edge Gateway and Fleet Portal
Maintainers
Readme
@beetech-autoid/smartsdk-client
Universal TypeScript / JavaScript client for the Beetech Universal RFID Edge Gateway and Central Fleet Portal.
Supports browser apps (React, Vue, Angular), mobile hybrids, and backend Node.js microservices.
- 🌐 Live Web Platform: https://advautoid.com
- 📖 Interactive Documentation: https://advautoid.com/docs
- 🔑 Instant RSA-2048 Trial License Generator: https://advautoid.com/trial
- 📦 Public GitHub Repository (main): https://github.com/anhdovan/advautoid.dev/tree/main
- 📂 TypeScript Runnable Samples: https://github.com/anhdovan/advautoid.dev/tree/main/samples/typescript
Features
- Real-Time Tag Streaming: Seamless WebSocket connection to Edge Gateway tag event stream with automatic reconnection.
- Incident & Telematics: Real-time push notifications for warehouse incidents, camera feeds, and audit trail events.
- Hardware Controller Operations: Query reader statuses, configure RF output power & sensitivity, start/stop autonomous inventory runs.
- Fleet Portal Integration: Telemetry health verification and on-demand cloud sync.
- TypeScript First: Full static typing and IDE autocompletion for all models and events.
Installation
npm install @beetech-autoid/smartsdk-clientQuick Start
1. Initialize Client
import { SmartSdkClient } from '@beetech-autoid/smartsdk-client';
const client = new SmartSdkClient({
baseUrl: 'http://192.168.1.100:18080',
apiKey: 'beetech-live-secret-key', // Optional if auth is disabled in dev mode
autoReconnect: true
});2. Stream RFID Tags in Real-Time
const unsubscribe = client.subscribeTags((tag) => {
console.log(`[Tag Read] EPC: ${tag.epc}, RSSI: ${tag.rssi} dBm, Antenna: ${tag.antenna}`);
if (tag.direction) {
console.log(` Direction: ${tag.direction}, Speed: ${tag.velocityMps} m/s`);
}
});
// Later, to unsubscribe:
// unsubscribe();3. Manage Reader Hardware
// Get all connected readers
const readers = await client.getReaders();
console.log(`Found ${readers.length} active readers.`);
// Adjust RF transmission power
await client.setReaderSettings(1, { power: 27.5 });
// Start inventory
await client.startReader(1);4. Check Health & Fleet Status
const health = await client.getHealth();
console.log(`Gateway Status: ${health.status}, Uptime: ${health.uptimeSeconds}s`);
const fleet = await client.getFleetStatus();
console.log(`Plant ID: ${fleet.plantId}, Cloud Sync: ${fleet.lastHeartbeatSuccess}`);License
MIT (C) 2026 Beetech Solutions Corp.
