Skip to content

Commit 2d83219

Browse files
use send_at (#80)
1 parent 93c489c commit 2d83219

File tree

1 file changed

+8
-14
lines changed
  • ublox-short-range/src/wifi

1 file changed

+8
-14
lines changed

ublox-short-range/src/wifi/sta.rs

+8-14
Original file line numberDiff line numberDiff line change
@@ -202,25 +202,19 @@ where
202202
}
203203

204204
pub fn reset_config_profile(&mut self) -> Result<(), WifiConnectionError> {
205-
self.send_internal(
206-
&EdmAtCmdWrapper(ExecWifiStationAction {
207-
config_id: CONFIG_ID,
208-
action: WifiStationAction::Reset,
209-
}),
210-
true,
211-
)?;
205+
self.send_at(EdmAtCmdWrapper(ExecWifiStationAction {
206+
config_id: CONFIG_ID,
207+
action: WifiStationAction::Reset,
208+
}))?;
212209
Ok(())
213210
}
214211

215212
pub fn disconnect(&mut self) -> Result<(), WifiConnectionError> {
216213
defmt::debug!("Disconnecting");
217-
self.send_internal(
218-
&EdmAtCmdWrapper(ExecWifiStationAction {
219-
config_id: CONFIG_ID,
220-
action: WifiStationAction::Deactivate,
221-
}),
222-
true,
223-
)?;
214+
self.send_at(EdmAtCmdWrapper(ExecWifiStationAction {
215+
config_id: CONFIG_ID,
216+
action: WifiStationAction::Deactivate,
217+
}))?;
224218
Ok(())
225219
}
226220
}

0 commit comments

Comments
 (0)