reorganize code
create light service, with splitted beacon and outdoor functions Signed-off-by: Peter Siegmund <mars3142@users.noreply.github.com>
This commit is contained in:
39
components/light/include/beacon.h
Normal file
39
components/light/include/beacon.h
Normal file
@@ -0,0 +1,39 @@
|
||||
#pragma once
|
||||
|
||||
#include "esp_err.h"
|
||||
|
||||
/**
|
||||
* @brief Initializes the beacon module.
|
||||
*
|
||||
* This function sets up the beacon module, configuring it for subsequent operations
|
||||
* such as starting or stopping the broadcast functionality.
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK: Initialization completed successfully.
|
||||
* - Error codes in case of failure, indicating the specific issue.
|
||||
*/
|
||||
esp_err_t beacon_init(void);
|
||||
|
||||
/**
|
||||
* @brief Starts the beacon functionality for broadcasting signals.
|
||||
*
|
||||
* This function initiates the process required for starting the beacon.
|
||||
* It ensures the beacon is prepared to transmit signals effectively.
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK: Beacon started successfully.
|
||||
* - Error codes in case of failure, indicating the specific issue.
|
||||
*/
|
||||
esp_err_t beacon_start(void);
|
||||
|
||||
/**
|
||||
* @brief Stops the beacon broadcasting functionality.
|
||||
*
|
||||
* This function terminates the ongoing broadcasting process of the beacon
|
||||
* and releases any resources allocated during the operation.
|
||||
*
|
||||
* @return
|
||||
* - ESP_OK: Broadcasting stopped successfully.
|
||||
* - Error codes in case of failure, indicating the specific issue.
|
||||
*/
|
||||
esp_err_t beacon_stop(void);
|
Reference in New Issue
Block a user