Skip to content

Instantly share code, notes, and snippets.

View code-matt's full-sized avatar

code-matt

  • Bitreel
  • Boston MA
  • 15:12 (UTC -04:00)
View GitHub Profile
@code-matt
code-matt / App.js
Created January 31, 2020 14:11 — forked from drewandre/App.js
export class App extends Component {
constructor(props) {
super(props)
this.BLEManager = new BleManager({
restoreStateIdentifier: 'bleManagerRestoredState',
restoreStateFunction: bleRestoredState => this.handleBLEManagerStateRestoration(bleRestoredState)
})
this.BLEManager.setLogLevel(LogLevel.Verbose)
this.BLEManager.onDeviceDisconnected(() => console.log('hey, device disconnected'))
this.props.actions.saveBLEManager(this.BLEManager)