summaryrefslogtreecommitdiffstats
path: root/recipes-core/udev/sw-gpsd-udev-conf/60-sw-gpsd.rules
blob: a554700398d91aa0b1dbebc4a8751e0d02b016da (plain)
1
2
3
4
5
6
7
8
# udev rules for gpsd for Sierra Wireless modems
SUBSYSTEM!="tty", GOTO="sw_gpsd_rules_end"

ENV{ID_VENDOR_ID}=="1199", ATTRS{bInterfaceNumber}=="02", SYMLINK+="gps%n", TAG+="systemd", ENV{SYSTEMD_WANTS}="gpsdctl@%k.service"

ACTION=="remove", TAG+="systemd", ENV{SYSTEMD_WANTS}="gpsdctl@%k.service"

LABEL="sw_gpsd_rules_end"
/style>
import "nanopb.proto";

message Person {
  required string name = 1 [(nanopb).max_size = 40];
  required int32 id = 2;
  optional string email = 3 [(nanopb).max_size = 40];
  optional bytes test = 5 [default = "abc\x00\x01\x02"];

  enum PhoneType {
    MOBILE = 0;
    HOME = 1;
    WORK = 2;
  }

  message PhoneNumber {
    required string number = 1 [(nanopb).max_size = 40];
    optional PhoneType type = 2 [default = HOME];
  }

  repeated PhoneNumber phone = 4 [(nanopb).max_count = 5];
}