Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)