Skip to content

Commit

Permalink
Exposed the wifi_event_group.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfeidau committed Mar 20, 2017
1 parent dacd47d commit 6c822a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion blufi_wireless.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static wifi_config_t sta_config;
static wifi_config_t ap_config;

/* FreeRTOS event group to signal when we are connected & ready to make a request */
static EventGroupHandle_t wifi_event_group;
EventGroupHandle_t wifi_event_group;

/* The event group allows multiple bits for each event,
but we only care about one event - are we connected
Expand Down
5 changes: 5 additions & 0 deletions blufi_wireless.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
extern "C" {
#endif

#include "freertos/event_groups.h"

extern EventGroupHandle_t wifi_event_group;
extern const int CONNECTED_BIT;

esp_err_t blufi_initialise_wifi();
void blufi_init();

Expand Down

0 comments on commit 6c822a6

Please sign in to comment.