The backend server of MlmAccess
backend | ||
mock-actor | ||
.gitignore | ||
docker-compose.yml | ||
README.md | ||
runBackend.sh |
server
The backend server of MlmAccess
Workflows
Pairing
A new actor can pair like this:
- Connect to the broker using
pair-actor
as username and the pair secret as password - Subscribe to
mlmAccess/pair/response/actor
- Publish its desired ID to
mlmAccess/pair/request/actor
- The backend will publish the password for the actor to
mlmAccess/pair/response/actor
in case of success - In case of an error, the backend will publish an empty string to
mlmAccess/pair/response/actor
- The actor may now connect using
actor-{id}
as username and the password it got in 4
Actor normal operation
During normal operation (after pairing) the actor has to follow this workflow:
- The actor subscribes to
mlmAccess/actor/{id}/action
- The actor publishes its status to
mlmAccess/actor/{id}/status
- The backend will publish a requested state change to
mlmAccess/actor/{id}/action
- The actor will publish its state to
mlmAccess/actor/{id}/status
to let the backend know that the action was executed successfully