Mosquitto: Difference between revisions

imported>Onny
Initial page
 
imported>Onny
Add usage example
Line 21: Line 21:
   allowedTCPPorts = [ 1883 ];
   allowedTCPPorts = [ 1883 ];
};
};
</syntaxHighlight>
== Usage ==
Testing the server is possible by running a listening comand
<syntaxHighlight lang="bash">
nix shell nixpkgs#mosquitto --command mosquitto_sub -h localhost -t test
</syntaxHighlight>
and sending on a different shell a message which should be received by the command above
<syntaxHighlight lang="bash">
nix shell nixpkgs#mosquitto --command mosquitto_pub -h localhost -t test -m "Hello"
</syntaxHighlight>
</syntaxHighlight>


[[Category:Applications]]
[[Category:Applications]]