jambtc / thingsboard-php-sdk
There is no license information available for the latest version (dev-main) of this package.
SDK PHP per ThingsBoard
dev-main
2024-10-25 16:02 UTC
Requires
- php: >=8.0
- guzzlehttp/guzzle: ^7.4.5
- guzzlehttp/psr7: ^2.7
Requires (Dev)
- phpunit/phpunit: ^11.3
This package is auto-updated.
Last update: 2024-12-25 16:21:09 UTC
README
PHP SDK for communicating with the ThingsBoard REST API
How to use
/// Inizializza AuthService con il base URL $authService = new AuthService('https://thingsboard.example.com'); // Autenticazione $authService->authenticate('username', 'password'); // Inizializza il controller dei dispositivi $deviceController = new DeviceController($authService); // Ottieni un dispositivo $device = $deviceController->getDevice('deviceId'); // Ottieni la Lista dei Dispositivi; $devices = $deviceController->getAllDevices();