mqttSender
用于记录项目mqttSender
MqttSender
description
A Software For me to send message to my mqtt server
So that I can contral my devices such as esp32 ,esp8266.
Another purpose is to learn python tkinter(GUI lib)
Technique
- python tkinter
- python pyinstaller
- python mqtt
requirements analization v1.0
GUI
version1.0
- conponents
- 1 text call box(for output)
- 1 entry box (for input)
- a send button()
- features(or limits? qwq )
- simple
- change server(ip address, password , topics) by editing source code .
mqtt
paho-mqtt version 1.6
- description
When coding the parts of mqtt sucscribe and publish , I find that the mqtt lib had upugrade to version 2.0 . However , I get the version 1 example code . Making me annoyed.
So i just gona to use version 1.6
And I will definetly upgrade my code in the future.
- mqtt part function
get the content( payload ) and the server information(settings) then send it.
release
pyinstaller gui_ver_1.py -p mqttSender.py
Version 2.0
requirements analization v1.0
- 6 inut text
- 1 ouput text
Technique
- python tkinter
- python pyinstaller
- python mqtt
- tkinter-designer
GUI
)
How to use ?
)use source code
- change
src\final\version_2_0\gui_ver_2.py
Line 70 to your own file position
- RUN
1
2cd src\final\version_2_0
python gui_ver_2.py- change
use release ( to be finished )
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment