MCPcopy Create free account
hub / github.com/chirpstack/chirpstack / id

Method id

lrwn/src/netid.rs:53–60  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

51 }
52
53 pub fn id(&self) -> Vec<u8> {
54 match self.netid_type() {
55 0 | 1 => self.get_id(6),
56 2 => self.get_id(9),
57 3..=7 => self.get_id(21),
58 _ => vec![],
59 }
60 }
61
62 fn get_id(&self, bits: u8) -> Vec<u8> {
63 // convert netid to u32

Callers 1

get_dev_addr_prefixMethod · 0.80

Calls 2

netid_typeMethod · 0.45
get_idMethod · 0.45

Tested by

no test coverage detected