Code Monkey home page Code Monkey logo

mqtt's People

Contributors

oskaritimperi avatar oswjk avatar

Watchers

 avatar  avatar  avatar

Forkers

skyformat99

mqtt's Issues

sub.c closes after a few minutes

Only changed mqqt broker server in sub.c to my own.

ilya@IRT-SERVER:/data/Dropbox/monmqtt$ ./sub
onConnect rv=0 sessionPresent=0
onSubscribe id=1
onMessage topic=<home/room> message=<1>
onMessage topic=<home/room/temp> message=<23.60>
onMessage topic=<home/room/humidity> message=<28.20>
onMessage topic=<home/kitchen> message=<1>
onMessage topic=<home/kitchen/light> message=<0>
onMessage topic=<home/outlet-1> message=<0>
onMessage topic=<home/outlet-1/power> message=<0>
onMessage topic=<home/lighting> message=<1>
onMessage topic=<home/hallway> message=<1>
onMessage topic=<home/hallway/light> message=<1>
onMessage topic=<home/bathroom/light> message=<0>
onMessage topic=<home/cam> message=<0>
onMessage topic=<work/door> message=<0>
onMessage topic=<work/door/open> message=<0>
onMessage topic=<home/room/temp> message=<23.60>
onMessage topic=<home/room/humidity> message=<28.40>
onMessage topic=<home/hallway/light> message=<0>
onMessage topic=<homebridge/to/set> message=<{"name":"hallway","service_name":"h                                                                       allway","characteristic":"On","value":false}>
onMessage topic=<home/bathroom/light> message=<1>
onMessage topic=<homebridge/to/set> message=<{"name":"bathroom","service_name":"                                                                       bathroom","characteristic":"On","value":true}>
onMessage topic=<home/room/temp> message=<23.60>
onMessage topic=<home/room/humidity> message=<28.40>
ilya@IRT-SERVER:/data/Dropbox/monmqtt$

It quits not after a few messages, but after a few time.
Compiled with
gcc sub.c mqtt.c optparse.c -o sub

Ability to bypass retain messages?

Would be very useful to have an option not to show retain messages on broker at first connect.
Like mosquitto_sub -R. "If this argument is given, messages that are received that have the retain bit set will not be printed."

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.