(
dev: &device::Device,
dp: &device_profile::DeviceProfile,
rx_info: &[gw::UplinkRxInfo],
data: &[u8],
)
| 41 | } |
| 42 | |
| 43 | async fn handle_uplink_v200( |
| 44 | dev: &device::Device, |
| 45 | dp: &device_profile::DeviceProfile, |
| 46 | rx_info: &[gw::UplinkRxInfo], |
| 47 | data: &[u8], |
| 48 | ) -> Result<()> { |
| 49 | let pl = clocksync::v2::Payload::from_slice(true, data)?; |
| 50 | |
| 51 | if let clocksync::v2::Payload::AppTimeReq(pl) = pl { |
| 52 | handle_v2_app_time_req(dev, dp, rx_info, pl).await? |
| 53 | } |
| 54 | |
| 55 | Ok(()) |
| 56 | } |
| 57 | |
| 58 | async fn handle_v1_app_time_req( |
| 59 | dev: &device::Device, |
no test coverage detected