Giter Site home page Giter Site logo

marquette's Issues

demo

Is it possible to have a live demo or screenshot of the project added to the README?

thanks

Unable to use libmosquitto in ARC

i am getting null as topic as well as message (in project with ARC)

mqttWithARC[1519:c07] did recieved (null) => (null)

plz tel me how to resolve this issue

Run the mosquito_loop on a background thread.

Running it from a timer seems to cause a crash on older devices that are doing a lot of work. Suspect that the timer fires the loop again before it finishes it's prior run.

Consider something like this:

  • (void) loop: (NSTimer *)timer {
    if (!_running) {
    _running = YES;
    // Run the loop on a background queue
    dispatch_async(_backgroundQueue, ^{
    @autoreleasepool {
    while (_running) {
    mosquitto_loop(mosq, 1, 1);
    [NSThread sleepForTimeInterval:0.01];
    }
    _running = NO;
    }
    });
    }

}

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.