Skip to content

Commit

Permalink
Bbalser/wifi location source (#412)
Browse files Browse the repository at this point in the history
* Add location_source to wifi heartbeats

* rename enum to just location_source
  • Loading branch information
bbalser committed Aug 12, 2024
1 parent 62e22b2 commit fdef2c6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/service/poc_mobile.proto
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ message cell_heartbeat_ingest_report_v1 {
cell_heartbeat_req_v1 report = 2;
}

enum location_source {
unknown = 0;
asserted = 1;
gps = 2;
skyhook = 3;
}

message wifi_heartbeat_req_v1 {
// Public key of the hotspot
bytes pub_key = 1;
Expand All @@ -83,6 +90,7 @@ message wifi_heartbeat_req_v1 {
bool operation_mode = 6;
bytes coverage_object = 7;
bytes signature = 8;
location_source location_source = 9;
}

message wifi_heartbeat_resp_v1 { string id = 1; }
Expand Down Expand Up @@ -333,6 +341,7 @@ message heartbeat {
// only used for wifi radios, all others should have a value of 1.0
// value is 0.0 to 1.0 multiplied by 1000
uint32 location_trust_score_multiplier = 12;
location_source location_source = 13;
}

enum heartbeat_validity {
Expand Down

0 comments on commit fdef2c6

Please sign in to comment.