Skip to content

Files

Latest commit

65107c9 · Oct 14, 2020

History

History

firmwareprotos

This module consists solely of the Java source code generated by protoc for the DeviceOS protobuf definitions.

To regenerate the Java protobuf sources:

  1. Check out the protobuf repo linked above
  2. cd to the root of the protobuf repo
  3. Run mkdir java
  4. Run cd control
  5. In common.proto, remove/comment out the message IPAddress (But do not remove IpAddress: note the case difference!), and do the same in network.proto for the messages/enums NetworkGetStatusRequest, NetworkGetStatusReply, NetworkGetConfigurationRequest, NetworkSetConfigurationRequest, NetworkState, IPConfiguration, DNSConfiguration, and NetworkConfiguration (See this bug for more information: particle-iot/device-os-protobuf#8)
  6. Run: protoc --java_out=../java/ cellular.proto cloud.proto common.proto config.proto extensions.proto mesh.proto network.proto storage.proto wifi_new.proto
  7. Copy the Java sources under the java dir to the src/main/java dir of this module.