Skip to content

Commit

Permalink
Merge pull request #10 from Puara/fix-linking-error
Browse files Browse the repository at this point in the history
fix issue #6
  • Loading branch information
edumeneses authored May 28, 2024
2 parents 2642863 + 5b00133 commit e8e1156
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion puara.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ void Puara::start(Monitors monitor) {
}

void Puara::sta_event_handler(void* arg, esp_event_base_t event_base,
int event_id, void* event_data) {
int32_t event_id, void* event_data) {
//int counter = 0;
if (event_base == WIFI_EVENT && event_id == WIFI_EVENT_STA_START) {
esp_wifi_connect();
Expand Down
3 changes: 1 addition & 2 deletions puara.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ class Puara {
static const short int max_connection = 5;
static const short int wifi_maximum_retry = 5;
static short int connect_counter;
static void sta_event_handler(void* arg, esp_event_base_t event_base, int event_id, void* event_data);
static void ap_event_handler(void* arg, esp_event_base_t event_base, int event_id, void* event_data);
static void sta_event_handler(void* arg, esp_event_base_t event_base, int32_t event_id, void* event_data);
static void wifi_init();

static std::string serial_data_str_buffer;
Expand Down

0 comments on commit e8e1156

Please sign in to comment.