Chore(Warnings): Silence Unused Enum Warnings
This commit is contained in:
@@ -79,7 +79,7 @@ fn main() -> Result<(), WifiConnectionError> {
|
||||
### General
|
||||
|
||||
- [x] Return detailed error messages.
|
||||
- [ ] Write documentation. **(approx. percentage: 20%)**
|
||||
- [x] Write documentation.
|
||||
- [ ] Update `wifi-CLI` with recent updates.
|
||||
- [ ] Write tests.
|
||||
|
||||
@@ -92,4 +92,3 @@ Any feature you feel is missing, why not send in a Pull Request, and let's help
|
||||
Love this project, please feel free to buy me a coffee below:
|
||||
<br>
|
||||
<a href="https://www.buymeacoffee.com/tnkemdilim" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ pub struct HotspotConfig {
|
||||
channel: Option<Channel>,
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug)]
|
||||
/// Band type of wireless hotspot.
|
||||
pub enum HotspotBand {
|
||||
@@ -25,6 +26,7 @@ pub enum HotspotBand {
|
||||
Bg,
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
/// Channel to broadcast wireless hotspot on.
|
||||
pub enum Channel {
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ fn main() -> Result<(), WifiConnectionError> {
|
||||
|
||||
let mut wifi = WiFi::new(config);
|
||||
|
||||
match wifi.connect("AndroidAPSD22", "belm4235") {
|
||||
match wifi.connect("CSIS_MH", "") {
|
||||
Ok(result) => println!(
|
||||
"{}",
|
||||
if result == true {
|
||||
|
||||
Reference in New Issue
Block a user