File tree Expand file tree Collapse file tree 5 files changed +10
-5
lines changed Expand file tree Collapse file tree 5 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
1
// This Source Code Form is subject to the terms of the Mozilla Public
2
2
// License, v. 2.0. If a copy of the MPL was not distributed with this
3
3
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
- //
4
+ //
5
5
// Copyright 2024 — by The Lindemans, LLC
6
6
//
7
+ //
7
8
use core:: BluetoothManager ;
8
9
pub struct AndroidBluetoothManager ;
9
10
Original file line number Diff line number Diff line change 1
1
// This Source Code Form is subject to the terms of the Mozilla Public
2
2
// License, v. 2.0. If a copy of the MPL was not distributed with this
3
3
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
- //
4
+ //
5
5
// Copyright 2024 — by The Lindemans, LLC
6
6
//
7
+ //
7
8
pub trait BluetoothManager {
8
9
fn connect ( & self ) -> Result < ( ) , String > ;
9
10
fn read_data ( & self ) -> Result < Vec < u8 > , String > ;
Original file line number Diff line number Diff line change 1
1
// This Source Code Form is subject to the terms of the Mozilla Public
2
2
// License, v. 2.0. If a copy of the MPL was not distributed with this
3
3
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
- //
4
+ //
5
5
// Copyright 2024 — by The Lindemans, LLC
6
6
//
7
+ //
7
8
use leptos:: * ;
8
9
use wasm_bindgen:: prelude:: * ;
9
10
use web_sys:: { window, HtmlLinkElement , HtmlMetaElement } ;
Original file line number Diff line number Diff line change 1
1
// This Source Code Form is subject to the terms of the Mozilla Public
2
2
// License, v. 2.0. If a copy of the MPL was not distributed with this
3
3
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
- //
4
+ //
5
5
// Copyright 2024 — by The Lindemans, LLC
6
6
//
7
+ //
7
8
use core:: BluetoothManager ;
8
9
pub struct IosBluetoothManager ;
9
10
Original file line number Diff line number Diff line change 1
1
// This Source Code Form is subject to the terms of the Mozilla Public
2
2
// License, v. 2.0. If a copy of the MPL was not distributed with this
3
3
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
4
- //
4
+ //
5
5
// Copyright 2024 — by The Lindemans, LLC
6
6
//
7
+ //
7
8
#[ cfg( target_os = "android" ) ]
8
9
use android_io:: connect_bluetooth;
9
10
You can’t perform that action at this time.
0 commit comments