This module consists solely of the Java source code generated by protoc
for the DeviceOS protobuf definitions.
To regenerate the Java protobuf sources:
- Check out the protobuf repo linked above
cd
to the root of the protobuf repo- Run
mkdir java
- Run
cd control
- In
common.proto
, remove/comment out the messageIPAddress
(But do not removeIpAddress
: note the case difference!), and do the same innetwork.proto
for the messages/enumsNetworkGetStatusRequest
,NetworkGetStatusReply
,NetworkGetConfigurationRequest
,NetworkSetConfigurationRequest
,NetworkState
,IPConfiguration
,DNSConfiguration
, andNetworkConfiguration
(See this bug for more information: particle-iot/device-os-protobuf#8) - Run:
protoc --java_out=../java/ cellular.proto cloud.proto common.proto config.proto extensions.proto mesh.proto network.proto storage.proto wifi_new.proto
- Copy the Java sources under the
java
dir to thesrc/main/java
dir of this module.