Adding error reporting from BLESesion in VM.
This commit is contained in:
1 parent
f948c7627f
commit
ea654257c7
1 file changed
+5
@@ -20,6 +20,11 @@ class ConnectionModal extends React.Component {
|
||||
phase: 'connected'
|
||||
});
|
||||
});
|
||||
this.props.vm.on('PERIPHERAL_ERROR', () => {
|
||||
this.setState({
|
||||
phase: 'error'
|
||||
});
|
||||
});
|
||||
}
|
||||
handleConnecting (peripheralId) {
|
||||
this.props.vm.connectToPeripheral(this.props.extensionId, peripheralId);
|
||||
|
||||
Reference in new issue
Block a user