meshtastic-protobuf/apponly.proto

29 wiersze
723 B
Protocol Buffer
Czysty Zwykły widok Historia

2020-12-28 05:34:14 +00:00
syntax = "proto3";
option java_package = "com.geeksville.mesh";
option java_outer_classname = "AppOnly";
option optimize_for = LITE_RUNTIME;
import "mesh.proto";
2021-01-17 06:50:35 +00:00
/*
* This message wraps a MeshPacket with extra metadata about the sender and how it arrived.
*/
2020-12-28 05:34:14 +00:00
message ServiceEnvelope {
2021-01-17 06:50:35 +00:00
/*
* The (probably encrypted) packet
*/
2020-12-28 05:34:14 +00:00
MeshPacket packet = 1;
2021-01-17 06:50:35 +00:00
/*
* The global channel ID it was sent on
*/
2020-12-28 05:34:14 +00:00
string channel_id = 2;
2021-01-17 06:50:35 +00:00
/*
* The sending gateway. Can we use this to authenticate/prevent fake
* nodeid impersonation for senders? - i.e. use gateway/mesh id (which is authenticated) + local node id as
* the globally trusted nodenum
*/
2020-12-28 06:38:51 +00:00
string gateway_id = 3;
2020-12-28 05:34:14 +00:00
}