Adding error reporting from BLESesion in VM.

This commit is contained in:
Evelyn Eastmond authored and Eric Rosenbaum committed 2018-07-02 10:18:13 -04:00
1 parent f948c7627f
commit ea654257c7
1 file changed
+5
+5
View File
@@ -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);