@woodeast/motherboard-client
v1.0.1
Published
A client library to interact with motherboards for restarting channels.
Readme
Motherboard Client Library
A client library to interact with motherboards for restarting channels.
Installation
npm install @woodeast/motherboard-clientUsage
import { restartChannels, restartAllChannels } from '@woodeast/motherboard-client';
// Restart specific channels on a motherboard
restartChannels('192.168.100.241', [1, 5, 10])
.then(results => {
console.log('Restart results:', results);
})
.catch(error => {
console.error('Failed to restart channels:', error);
});
// Restart all channels on a motherboard
restartAllChannels('192.168.100.241')
.then(results => {
console.log('Restart all channels successful:', results);
})
.catch(error => {
console.error('Failed to restart all channels:', error);
});