25 lines
443 B
C
25 lines
443 B
C
/*
|
|
* AUTHOR: Alexander Popov <iiiypuk {at} fastmail.fm>
|
|
* DESC: ...
|
|
*/
|
|
|
|
#include "ui.h"
|
|
|
|
void close_app(webui_event_t* e) {
|
|
printf("Bye!\n");
|
|
// webui_destroy();
|
|
webui_exit();
|
|
}
|
|
|
|
void refresh_devices(webui_event_t* e) {
|
|
printf("ololo\n");
|
|
|
|
webui_return_string(e, json_dumps(get_serial_ports(), 0));
|
|
}
|
|
|
|
void connect_device(webui_event_t* e) {
|
|
const char* str = webui_get_string(e);
|
|
|
|
webui_return_bool(e, true);
|
|
}
|