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

Function handle_uplink_v100

chirpstack/src/applayer/clocksync.rs:28–41  ·  view source on GitHub ↗
(
    dev: &device::Device,
    dp: &device_profile::DeviceProfile,
    rx_info: &[gw::UplinkRxInfo],
    data: &[u8],
)

Source from the content-addressed store, hash-verified

26}
27
28async fn handle_uplink_v100(
29 dev: &device::Device,
30 dp: &device_profile::DeviceProfile,
31 rx_info: &[gw::UplinkRxInfo],
32 data: &[u8],
33) -> Result<()> {
34 let pl = clocksync::v1::Payload::from_slice(true, data)?;
35
36 if let clocksync::v1::Payload::AppTimeReq(pl) = pl {
37 handle_v1_app_time_req(dev, dp, rx_info, pl).await?
38 }
39
40 Ok(())
41}
42
43async fn handle_uplink_v200(
44 dev: &device::Device,

Callers 1

handle_uplinkFunction · 0.70

Calls 1

handle_v1_app_time_reqFunction · 0.85

Tested by

no test coverage detected