Add client notification fromradio message

pull/557/head
Ben Meadors 2024-08-08 06:52:25 -05:00 zatwierdzone przez Jonathan Bennett
rodzic d7ce4f30fa
commit 66a6d11f7f
2 zmienionych plików z 34 dodań i 0 usunięć

Wyświetl plik

@ -46,6 +46,8 @@
*FileInfo.file_name max_size:228
*ClientNotification.message max_size:400
# MyMessage.name max_size:40
# or fixed_length or fixed_count, or max_count

Wyświetl plik

@ -1540,9 +1540,41 @@ message FromRadio {
* File system manifest messages
*/
FileInfo fileInfo = 15;
/*
* Notification message to the client
*/
ClientNotification clientNotification = 16;
}
}
/*
* A notification message from the device to the client
* To be used for important messages that should to be displayed to the user
* in the form of push notifications or validation messages when saving
* invalid configuration.
*/
message ClientNotification {
/*
* The id of the packet we're notifying in response to
*/
optional uint32 reply_id = 1;
/*
* Seconds since 1970 - or 0 for unknown/unset
*/
fixed32 time = 2;
/*
* The level type of notification
*/
LogRecord.Level level = 3;
/*
* The message body of the notification
*/
string message = 4;
}
/*
* Individual File info for the device
*/