Skip to content

Sending ZeroMQ messages from Arduino (limited zmq wire protocol implementation)

License

Notifications You must be signed in to change notification settings

dicoy-zz/zeromq-arduino-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

zeromq-arduino-example

Sending ZeroMQ (ØMQ) messages from Arduino (limited zmq wire protocol implementation)

You need an Ethernet Shield and (optionally) some sensors to be read on analog pins 0 and 1

This example sends one ZeroMQ message every second to a ZeroMQ PULL socket on 192.168.11.3 port 7000

This means this code implements the simplest PUSH message.

It does not implement a full ZeroMQ stack. You should use it as a mean of delivering messages to a more stable ØMQ router running on a server.

Example server

Example of a listening PULL socket (in Python):

import sys
import zmq
import time


context = zmq.Context()
sock = context.socket(zmq.PULL)
sock.bind("tcp:https://*8080")

while True:
    message= sock.recv()
    print message

About

Sending ZeroMQ messages from Arduino (limited zmq wire protocol implementation)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published