Searched refs:beacon (Results 1 – 5 of 5) sorted by relevance
158 let mut beacon = guard.get(&self.chip_id); in tick() localVariable159 if beacon.is_none() { in tick()163 let mut beacon = beacon.unwrap().lock().expect("Failed to acquire lock on BeaconChip"); in tick() localVariable166 (beacon.advertise_start, beacon.advertise_settings.timeout) in tick()173 if let Some(last) = beacon.advertise_last { in tick()174 if last.elapsed() <= beacon.advertise_settings.mode.interval { in tick()178 beacon.advertise_start = Some(Instant::now()) in tick()181 beacon.advertise_last = Some(Instant::now()); in tick()184 advertising_type: beacon.advertise_settings.get_packet_type(), in tick()185 advertising_data: beacon.advertise_data.to_bytes(), in tick()[all …]
19 mod beacon; module22 pub(crate) use self::beacon::*;
32 * ### `beacon`: A chip that sends advertisements at a set interval33 * Usage: `netsim beacon <COMMAND>`35 * `create`: Create a beacon36 * Usage: `netsim beacon create <COMMAND>`38 * `ble`: Create a Bluetooth low-energy beacon39 … * Usage: `netsim beacon create ble [DEVICE_NAME | DEVICE_NAME CHIP_NAME] [OPTIONS]`42 …* \[CHIP_NAME\]: Optional name of the beacon to create within the new device. May only be specifie…50 * `--tx-power-level <LEVEL>`: Set the beacon's transmission power level57 * `--scannable`: Set whether the beacon will respond to scan requests63 * `patch`: Modify a beacon[all …]
96 // Advertise Settigns dictate how the beacon functions on the netwwork.98 // How often the beacon sends an advertising packet136 // How often the beacon sends an advertising packet149 // Whether the beacon will respond to scan requests.156 // scan responses sent by the beacon. Beacons in Betosim will support a162 // UUID of a Bluetooth GATT service for the beacon182 // Settings on how beacon functions210 // Settings on how beacon functions
40 // built-in BLE beacon