[FL-1064] iButton CLI commands (#407)

* ibutton: add cli commands
* ibutton/scene: add cli event send
* ibutton: make separate scenes for cli commands
* ibutton/scene: add timeout to cli scenes
* ibutton: fix reading key data from cli
* cli: add cli_delete_command to API
* ibutton: delete cli command after app exit
* cli: free allocated string

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
gornekich
2021-04-14 17:24:33 +03:00
committed by GitHub
parent d1f523687e
commit cfcdff8346
10 changed files with 522 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#pragma once
#include "ibutton-scene-generic.h"
class iButtonSceneCliRead : public iButtonScene {
public:
void on_enter(iButtonApp* app) final;
bool on_event(iButtonApp* app, iButtonEvent* event) final;
void on_exit(iButtonApp* app) final;
private:
uint16_t timeout;
};