Unsecured Mode¶
Deploy the Message Broker Mosquitto
Mosquitto can be deployed on the server machine where manta_manager
will be executed or on a remote machine accessible to both the server and embedded devices.
$ mosquitto
[23218.338893]~DLT~76113~INFO ~FIFO /tmp/dlt cannot be opened. Retrying later...
1726235842: mosquitto version 1.6.9 starting
1726235842: Using default config.
1726235842: Opening ipv4 listen socket on port 1883.
1726235842: Opening ipv6 listen socket on port 1883.
Deploy Manta Manager
Once Mosquitto is deployed, you can start manta_manager
on the server machine.
$ manta_manager -vv --debug
[09/13/24 15:57:24] INFO 2024-09-13 15:57:24,481 - manta_manager.database - INFO - Connected to MongoDB at localhost:27017 (database.py:710) database.py:710
INFO 2024-09-13 15:57:24,493 - manta_manager.mqtt_client - INFO - Connected to MQTT broker: localhost:1883 (mqtt_client.py:149) mqtt_client.py:149
Note
See the Manager CLI for more information on flags.
Deploy Manta Node
After initializing manta_manager
, you can start manta_node
on embedded devices.
$ manta_node -vv --debug
[09/13/24 15:57:30] INFO 2024-09-13 15:57:30,613 - manta_node.task_runner - INFO - Connected to docker daemon ! (task_runner.py:29) task_runner.py:29
INFO 2024-09-13 15:57:30,635 - manta_node.mqtt_client - INFO - Subscribing to topics: <...>
Note
By default, the node_id
is generated from the machine’s MAC address; however, the MAC address value is not stored on the server.
To specify an alias, use the flag --alias <your_alias>
.
To generate and use a random ID, use the flag --random_id
.
Note
See the Node CLI for more information on flags.