-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a stub implementation fro Ubuntu
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/* | ||
* Copyright (c) 2023 Allterco Robotics | ||
* All rights reserved | ||
*/ | ||
|
||
#include "mgos_wifi_hal.h" | ||
|
||
#include "mgos.h" | ||
|
||
bool mgos_wifi_dev_ap_setup(const struct mgos_config_wifi_ap *cfg UNUSED_ARG) { | ||
LOG(LL_ERROR, ("%s: not implemented", __func__)); | ||
return true; // Pretend it succeded | ||
} | ||
|
||
bool mgos_wifi_dev_sta_setup(const struct mgos_config_wifi_sta *cfg UNUSED_ARG) { | ||
LOG(LL_ERROR, ("%s: not implemented", __func__)); | ||
return true; // Pretend it succeeded | ||
} | ||
|
||
bool mgos_wifi_dev_sta_connect(void) { | ||
LOG(LL_ERROR, ("%s: not implemented", __func__)); | ||
return false; | ||
} | ||
|
||
bool mgos_wifi_dev_sta_disconnect(void) { | ||
return true; | ||
} | ||
|
||
enum mgos_wifi_status mgos_wifi_dev_sta_get_status(void) { | ||
return MGOS_WIFI_DISCONNECTED; | ||
} | ||
|
||
bool mgos_wifi_dev_start_scan(void) { | ||
LOG(LL_ERROR, ("%s: not implemented", __func__)); | ||
return false; | ||
} | ||
|
||
int mgos_wifi_sta_get_rssi(void) { | ||
return 0; | ||
} | ||
|
||
bool mgos_wifi_dev_get_ip_info(int if_instance UNUSED_ARG, | ||
struct mgos_net_ip_info *ip_info UNUSED_ARG) { | ||
LOG(LL_ERROR, ("%s: not implemented", __func__)); | ||
return false; | ||
} | ||
|
||
void mgos_wifi_dev_init(void) { | ||
} | ||
|
||
void mgos_wifi_dev_deinit(void) { | ||
} |