Usage
To run this sprint, run the following commands each on their own shell:
-
Run the WEnv and the BasicRobot
docker-compose -f basicrobotVirtual.yaml up
-
Run the weight sensor mock
gradlew runWeightSensor
-
Run the application
gradlew run
Weight Sensor Mock
To update the weight you have to insert an integer
:
> 10
Weight updated to 10
REST-API
To send commands throught the REST-API you can use:
-
A simple web browser
-
An API platform like Postman (you can import the postman collection)
-
A command line tool like curl, for example:
curl -X GET http://localhost:8080/client/reqenter {"code":1,"message":"The indoor area or trolley are engaged"}
To learn about the REST-API commands available in this sprint check out the documentation