Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jmysu/zmqsocket
ZMTP3-SUB/PUB Python/C++ minimum implement
https://github.com/jmysu/zmqsocket
arduino esp32 platformio python zmq zmtp
Last synced: 3 months ago
JSON representation
ZMTP3-SUB/PUB Python/C++ minimum implement
- Host: GitHub
- URL: https://github.com/jmysu/zmqsocket
- Owner: jmysu
- License: gpl-3.0
- Created: 2019-02-05T23:11:42.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-14T22:28:50.000Z (almost 6 years ago)
- Last Synced: 2023-07-19T09:56:01.716Z (over 1 year ago)
- Topics: arduino, esp32, platformio, python, zmq, zmtp
- Language: Python
- Homepage:
- Size: 1.32 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zmqSocket ZMTP3.0 mini implementation w/o libZmq
ZMTP3-SUB/PUB Python/Arduino-C++
使用Python/Arduino sockets模擬ZMTP3-PUB/SUB的Greeting/Handshake並發送接收訂閱資料
# References
- [zmq guide](http://zguide.zeromq.org/)
- [minimum zmtp stuff](https://github.com/zeromq/zmtp/tree/master/zmtp30/C)
- [zmtp Wireshark dissector](https://github.com/whitequark/zmtp-wireshark/blob/master/zmtp-dissector.lua)
- [zmtp RFC spec](https://rfc.zeromq.org/spec:23/ZMTP/)
![Detecting zPeers](pictures/zmtpDetectingPeers.png)
## Python sockets as subscriber (for single publisher) <---> Pyzmq as publisher
## Python sockets as publisher <---> Pyzmq as subscriber
訂閱端 sockets only (sktSub.py) w/o Pyzmq <---> (zmqPub.py) w/ Pyzmq 派送端
派送端 sockets only (sktPub.py) w/o Pyzmq <---> (zmqSub.py) w/ Pyzmq 訂閱端
### ZMQ-PUB Python Simulation
![SocketSub](pictures/sktPub.png)### ZMQ-PUB Python Simulation Wireshark ZMTP Traffics
Publisher: color in red
![SocketSub](pictures/sktPubWireshark.png)### ZMQ-SUB Python Simulation
![SocketSub](pictures/zmqSocketSub.png)### ZMQ-SUB Python Simulation Wireshark ZMTP Traffics
Subscriber: color in blue
![SocketSub](pictures/zmqSocketSubWireshark.png)### (NEW) ESP32 project works for ZMTP3 Publish
ESP32 uses Arduino WiFiClient (w/o libZmq) to send ZMTP3 messages...
![ESP32 zSocket](pictures/zmqESP32.png)