pub fn new(
        worker_name: String,
        worker_id: String,
        wifi_tx_queue: Sender<Transmission>,
        lora_tx_queue: Sender<Transmission>,
        rng: StdRng,
        logger: Logger,
    ) -> LoraWifiBeacon {
        LoraWifiBeacon {
            worker_name,
            worker_id,
            wifi_tx_queue,
            lora_tx_queue,
            rng: Arc::new(Mutex::new(rng)),
            logger,
        }
    }
///Creates a new instance of the LoraWifi protocol
Creates a new instance of the LoraWifi protocol
Creates a new instance of the LoraWifi protocol
pub fn new(
        worker_name: String,
        worker_id: String,
        wifi_tx_queue: Sender<Transmission>,
        lora_tx_queue: Sender<Transmission>,
        rng: StdRng,
        logger: Logger,
    ) -> LoraWifiBeacon {
        LoraWifiBeacon {
            worker_name,
            worker_id,
            wifi_tx_queue,
            lora_tx_queue,
            rng: Arc::new(Mutex::new(rng)),
            logger,
        }
    }
pub fn new ( worker_name : String , worker_id : String , wifi_tx_queue : Sender < Transmission > , lora_tx_queue : Sender < Transmission > , rng : StdRng , logger : Logger , ) -> LoraWifiBeacon { LoraWifiBeacon { worker_name , worker_id , wifi_tx_queue , lora_tx_queue , rng : Arc :: new ( Mutex :: new ( rng ) ) , logger , } }
Creates a new instance of the LoraWifi protocol
Creates a new instance of the LoraWifi protocol
worker_name
String
worker_id
String
wifi_tx_queue
Sender<Transmission>
lora_tx_queue
Sender<Transmission>
rng
StdRng
logger
Logger