Skip to content

Commit

Permalink
More docs regarding GND Station Options
Browse files Browse the repository at this point in the history
  • Loading branch information
seeul8er committed Aug 4, 2024
1 parent 286ad6c commit 84af973
Show file tree
Hide file tree
Showing 8 changed files with 366 additions and 414 deletions.
4 changes: 2 additions & 2 deletions create_release_zip.ps1
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Execute in an esp-idf enabled PowerShell
# This script will create a combined zip file containing binaries for all supported esp32 boards

$release_foldername = "DroneBridge_ESP32_vXX"
$release_name_zip = "DroneBridge_ESP32_vXX.zip"
$release_foldername = "DroneBridge_ESP32_v2.0RC2"
$release_name_zip = "DroneBridge_ESP32_v2.0RC2.zip"

mkdir $release_foldername
mkdir build
Expand Down
2 changes: 1 addition & 1 deletion main/db_esp32_control.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@ _Noreturn void control_module_udp_tcp() {
db_esp_signal_quality.air_rssi = -127;
} else {/* all good */}
} else if (DB_WIFI_MODE == DB_WIFI_MODE_AP || DB_WIFI_MODE == DB_WIFI_MODE_AP_LR) {
ESP_ERROR_CHECK_WITHOUT_ABORT(esp_wifi_ap_get_sta_list(&wifi_sta_list)); // get list of connected stations
ESP_ERROR_CHECK_WITHOUT_ABORT(esp_wifi_ap_get_sta_list(&wifi_sta_list)); // update list of connected stations
db_send_internal_telemetry_to_stations(db_internal_telem_udp_sock, &wifi_sta_list, udp_conn_list);
} else {
// no way of getting RSSI here. Do nothing
Expand Down
2 changes: 2 additions & 0 deletions main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,14 @@ static void wifi_event_handler(void *arg, esp_event_base_t event_base, int32_t e
if (event_id == WIFI_EVENT_AP_STACONNECTED) {
wifi_event_ap_staconnected_t *event = (wifi_event_ap_staconnected_t *) event_data;
ESP_LOGI(TAG, "WIFI_EVENT - Client connected - station:"MACSTR", AID=%d", MAC2STR(event->mac), event->aid);
ESP_ERROR_CHECK_WITHOUT_ABORT(esp_wifi_ap_get_sta_list(&wifi_sta_list)); // update list of connected stations
} else if (event_id == WIFI_EVENT_AP_STADISCONNECTED) {
wifi_event_ap_stadisconnected_t *event = (wifi_event_ap_stadisconnected_t *) event_data;
ESP_LOGI(TAG, "WIFI_EVENT - Client disconnected - station:"MACSTR", AID=%d", MAC2STR(event->mac), event->aid);
struct db_udp_client_t db_udp_client;
memcpy(db_udp_client.mac, event->mac, sizeof(db_udp_client.mac));
remove_from_known_udp_clients(udp_conn_list, db_udp_client);
ESP_ERROR_CHECK_WITHOUT_ABORT(esp_wifi_ap_get_sta_list(&wifi_sta_list)); // update list of connected stations
} else if (event_id == WIFI_EVENT_AP_START) {
ESP_LOGI(TAG, "WIFI_EVENT - AP started! (SSID: %s PASS: %s)", DB_WIFI_SSID, DB_WIFI_PWD);
} else if (event_id == WIFI_EVENT_AP_STOP) {
Expand Down
Loading

0 comments on commit 84af973

Please sign in to comment.