Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions meshtastic/mesh.options
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,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

Expand Down
32 changes: 32 additions & 0 deletions meshtastic/mesh.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1508,9 +1508,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
*/
Expand Down