@webex/plugin-device-manager

Plugin for the DeviceManager service
WARNING: This plugin is currently under active development, is not stable, and breaking changes can and will happen!
Install
npm install --save @webex/plugin-device-manager
Usage
This is a plugin for the Cisco Webex JS SDK . Please see our developer portal and the API docs for full details.
###Samples
yarn run samples:devicemanager
// initialize webex instance -> connects to mercury -> registers device ->
// initializes plugin-device-manager to listen for device updates
import '@webex/plugin-device-manager';
import WebexCore from '@webex/webex-core';
function connect() {
if (!webex) {
webex = WebexCore.init({
config: {},
credentials: {
access_token: document.getElementById('access-token').value,
},
});
}
if (!webex.internal.device.registered) {
webex.internal.device.register().then(() => {
return webex.internal.mercury.connect();
});
}
}
webex.devicemanager
.getAll()
.refresh()
.search()
.requestPin()
.pair()
.increaseVolume()
.decreaseVolume()
.mute()
.unmute()
.bindSpace()
.unbindSpace()
.unpair();
Maintainers
This package is maintained by Cisco Webex for Developers.
Contribute
Pull requests welcome. Please see CONTRIBUTING.md for more details.
License
© 2016-2020 Cisco and/or its affiliates. All Rights Reserved.