62c088256f
added the RGB sensor isl29125 added WIFI
87 lines
2.5 KiB
C++
87 lines
2.5 KiB
C++
// --------------------------------------------------------------------------------------------------------------------
|
|
/// \file wifi.h
|
|
/// \brief File description
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
//
|
|
// vbchaos software design
|
|
//
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
/// $Revision: $
|
|
/// $Author: $
|
|
/// $Date: $
|
|
// (c) 2023 vbchaos
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
#ifndef MAIN_INC_WIFI_H_
|
|
#define MAIN_INC_WIFI_H_
|
|
|
|
/**
|
|
* wifi implementation
|
|
* \defgroup wifi
|
|
* \brief {group_description}
|
|
* \addtogroup {Layer}
|
|
*
|
|
* Detailed description
|
|
* @{
|
|
*/
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
// Include files
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
|
|
// CompilerIncludes
|
|
// All include files that are provided by the compiler directly
|
|
//#include "esp_system.h"
|
|
#include "esp_event.h"
|
|
//#include "esp_log.h"
|
|
//
|
|
#include "freertos/FreeRTOS.h"
|
|
//#include "freertos/task.h"
|
|
#include "freertos/event_groups.h"
|
|
|
|
|
|
// ProjectIncludes
|
|
// All include files that are provided by the project
|
|
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
// Constant and macro definitions
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
// Type definitions.
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
// Function declarations
|
|
// --------------------------------------------------------------------------------------------------------------------
|
|
|
|
class Wifi
|
|
{
|
|
public:
|
|
|
|
Wifi(void);
|
|
|
|
void start_client(void);
|
|
|
|
private:
|
|
|
|
static EventGroupHandle_t s_wifi_event_group;
|
|
static int s_retry_num;
|
|
static const char *TAG;
|
|
|
|
static void event_handler(void* arg, esp_event_base_t event_base, int32_t event_id, void* event_data);
|
|
|
|
};
|
|
|
|
|
|
/** @} */
|
|
|
|
#endif /* MAIN_INC_WIFI_H_ */
|