Skip to content

alvonx/emqx-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

EMQX and Python

Launching EMQX serverwith docker

you will require 2 open ports on the server say (port1 & port2)

launch emqx sudo docker run -d --name emqx -p port1:18083 -p port2:1883 emqx:latest

here internal port

18083 -> emqx dashboard

1883 -> emqx server

container created

  • login to container

sudo docker exec -it emqx /bin/sh

  • change password of root(admin) user

emqx ctl admins passwd admin <your-pass>

to access dashboard

http://server-ip:port1 # see above for port1

  • create user

image image image image image image add user name and password

write some python code to publish message to the broker

  • install paho-mqtt pip install paho-mqtt

see code emqx-python.py

About

launching emqx server using docker and publishing message to it using python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages