The first returns the Protobuf integer, the second the generated enum type. The big difference is that the first .to_string() would convert the Protobuf integer to the same but then as String type, where the latter returns something like '1.0.3' which is provided by the fmt::Display trait implementation by ChirpStack.
ChirpStack open-source LoRaWAN Network Server
ChirpStack is an open-source LoRaWAN Network Server, part of the ChirpStack project.
Note: this repository contains the source of what is going to be ChirpStack v4. This release merges the ChirpStack Network Server and ChirpStack Application Server components into a single service, making it a lot easier to setup a multi-region ChirpStack instance. This is still work in progress.
Please refer to the forum announcement for background information: https://forum.chirpstack.io/t/changes-coming-to-chirpstack/13101
Testing / building from source
To build ChirpStack from source, run the following command:
make test-server
Note: this requires a Linux environment With Docker and Docker Compose setup. Pre-compiled (test) binaries will be provided soon.
License
ChirpStack Network Server is distributed under the MIT license. See also LICENSE.