-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement profiles on MCU side (#144)
- Loading branch information
1 parent
1b2fd03
commit 0befc7f
Showing
26 changed files
with
1,714 additions
and
312 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/** | ||
* @file ProfileEndpoint.h | ||
* @author TheRealKasumi | ||
* @brief Contains a REST endpoint to manage user profiles. | ||
* | ||
* @copyright Copyright (c) 2022-2023 TheRealKasumi | ||
* | ||
* This project, including hardware and software, is provided "as is". There is no warranty | ||
* of any kind, express or implied, including but not limited to the warranties of fitness | ||
* for a particular purpose and noninfringement. TheRealKasumi (https://github.com/TheRealKasumi) | ||
* is holding ownership of this project. You are free to use, modify, distribute and contribute | ||
* to this project for private, non-commercial purposes. It is granted to include this hardware | ||
* and software into private, non-commercial projects. However, the source code of any project, | ||
* software and hardware that is including this project must be public and free to use for private | ||
* persons. Any commercial use is hereby strictly prohibited without agreement from the owner. | ||
* By contributing to the project, you agree that the ownership of your work is transferred to | ||
* the project owner and that you lose any claim to your contribute work. This copyright and | ||
* license note applies to all files of this project and must not be removed without agreement | ||
* from the owner. | ||
* | ||
*/ | ||
#ifndef PROFILE_ENDPOINT_H | ||
#define PROFILE_ENDPOINT_H | ||
|
||
#include "server/RestEndpoint.h" | ||
#include "configuration/Configuration.h" | ||
#include "led/LedManager.h" | ||
#include "logging/Logger.h" | ||
|
||
namespace TL | ||
{ | ||
class ProfileEndpoint : public RestEndpoint | ||
{ | ||
public: | ||
static void begin(); | ||
|
||
private: | ||
ProfileEndpoint(); | ||
|
||
static void getActiveProfile(); | ||
static void patchActiveProfile(); | ||
|
||
static void getProfiles(); | ||
static void postProfile(); | ||
static void cloneProfile(); | ||
static void deleteProfile(); | ||
|
||
static bool validateProfileName(const String &profileName); | ||
}; | ||
} | ||
|
||
#endif |
Oops, something went wrong.