(
dev: &device::Device,
dp: &device_profile::DeviceProfile,
rx_info: &[gw::UplinkRxInfo],
data: &[u8],
)
| 26 | } |
| 27 | |
| 28 | async 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 | |
| 43 | async fn handle_uplink_v200( |
| 44 | dev: &device::Device, |
no test coverage detected