This simple go application represents an example of a gRPC server that can be used to receive messages from the Network Survey Android app. The functionality of this server does not exist other than as a test server for testing the Network Survey Android app, or as an example of how to leverage the .proto files from the Network Survey Messaging Library to create a gRPC server written in Go.
-
Download Dependencies Before working with this application, you need to download all the dependencies. To accomplish this use the command:
go get craxiom.com/ns-messaging-go-grpc-server
The application can be compiled and run using the following command
go run .
Use the "Server Connection" in the
Network Survey Android App to connect to
the gRPC server. The server address should be the IP address of the machine running the gRPC server, and the port should
be 2621
.
I generated the go code in the messaging
directory by running the commands found in the
NS Messaging Repo
From there, I copied the output into the messaging
directory of this project.
- Christian Rowlands - Craxiom