eth_beacons_indoor/
lib.rs

1pub mod resolver;
2
3include!("buildings.gen.rs");
4
5#[derive(Debug, Clone, Default, Copy)]
6pub struct Position {
7    pub lat: f64,
8    pub lon: f64,
9}
10
11#[derive(Debug, Clone)]
12pub struct Id {
13    pub uuid: &'static str,
14    pub major: u16,
15    pub minor: u16,
16}
17
18#[derive(Debug, Clone)]
19pub struct Beacon {
20    pub id: Id,
21    pub position: Position,
22    pub location: Location,
23}
24
25#[derive(Debug, Clone)]
26pub struct Location {
27    pub building: Building,
28    pub floor: &'static str,
29    pub room: &'static str,
30}
31
32pub static ETH_UUID: &str = "58793564-459c-548d-bfcc-367ffd4fcd70";
33
34include!("beacons.gen.rs");