Skip to content

Commit 896300a

Browse files
authored
Add enabled_carriers_info (#458)
1 parent 2c7e373 commit 896300a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/service/poc_mobile.proto

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,29 @@ enum carrier_id_v2 {
7777
carrier_id_v2_carrier_9 = 10;
7878
}
7979

80+
message enabled_carriers_info_req_v1 {
81+
// The on-chain address of the gateway (public key in binary format).
82+
bytes hotspot_pubkey = 1;
83+
// List of carriers enabled for data offload.
84+
repeated carrier_id_v2 enabled_carriers = 2;
85+
// The firmware version running on the hotspot.
86+
string firmware_version = 3;
87+
// Timestamp in milliseconds since the Unix epoch when this message was
88+
// generated.
89+
uint64 timestamp_ms = 4;
90+
// Signer of the message
91+
bytes signer_pubkey = 5;
92+
bytes signature = 6;
93+
}
94+
95+
message enabled_carriers_info_resp_v1 { uint64 timestamp_ms = 1; }
96+
97+
message enabled_carriers_info_report_v1 {
98+
// Timstamp in milliseconds since unix epoch
99+
uint64 received_timestamp_ms = 1;
100+
enabled_carriers_info_req_v1 report = 2;
101+
}
102+
80103
message radio_usage_carrier_transfer_info {
81104
carrier_id carrier_id = 1 [ deprecated = true ];
82105
uint64 transfer_bytes = 2;
@@ -435,6 +458,8 @@ service poc_mobile {
435458
rpc submit_subscriber_mapping_activity(subscriber_mapping_activity_req_v1)
436459
returns (subscriber_mapping_activity_res_v1);
437460
rpc submit_ban(ban_req_v1) returns (ban_resp_v1);
461+
rpc submit_enabled_carriers_info(enabled_carriers_info_req_v1)
462+
returns (enabled_carriers_info_resp_v1);
438463
}
439464

440465
message ban_resp_v1 { uint64 timestamp_ms = 1; }

0 commit comments

Comments
 (0)