Code Monkey home page Code Monkey logo

mqtt-free-pascal's Introduction

zicog

A Zilog Z80 emulator running on the Parallax Propeller MCU that runs CP/M.

mqtt-free-pascal's People

Contributors

hex16 avatar lexbailey avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mqtt-free-pascal's Issues

Fails to connect to remote MQTT servers.

For some reason when building this recently on Debian Jessie amd64 connection fails at startup.

The SocketWrite fails with a connection timeout error. Basically the FPSocket^.Connect is returning before connection is established. Checking LastError after the connect shows "Operation in progress".

New Version of Free Pascal MQTT and MQTTReadThread doesn't work for me.

I've downloaded the files both of them and replaced them over the old 2013 MQTT and MQTTReadThread files. Then, I made all the appropriate changes in my software to reflect the changes in these new files in my program and my program complied with no problems. However, when I ran my program and try to connect to Mosquitto MQTT broker, MQTTClient refused to connect and dies every time. There is absolutely NO COMMUNICATION AT ALL.

With the 2013 MQTT.pas and MQTTReadThread.pas, I am able to connect and communicate successfully but ONLY for anywhere between 1 minute to 5 hours. Then, the MQTTReadThread stops working COMPLETELY, even though my software keeps publishing messages. The only way I can regain Read Communication is for me to shutdown and restart my program. I was hoping the new or updated MQTT and MQTTReadThread will solve my problem, but it is even worse. I would much appreciate it if someone could give me some hints or clues... Currently, I am trying to see why MQTTReadThread mysteriously quits reading the incoming messages. Thanks.

Сode formatting

the code has very non-standard formatting (strange string translations, large indents, spaces).
How about making JEDI Code Formating? (lazarus feature)
I can make Pull Request with new formating.

Example formating:

          constructor Create(Hostname: ansistring; Port: integer);
          overload;
          destructor Destroy;
          override;

   // Helper Function - Puts the seperate component together into an Array of Bytes for transmission
        function BuildCommand(FixedHead: Byte; RemainL: TRemainingLength; VariableHead: TBytes;
                              Payload:
                              array of Byte): TBytes; 

It can't run stably

After compiling, it will automatically exit after running for a day or two?

MQTT Username and Password support added.

Hi,

Been using the mqtt-free-pascal component recently to give my application message queue functionality and also sync with web apps.

But most brokers need a username and password. So I saw it was in the comments as a TODO item so I tried to hack in the functionality.

I commit the change to my own repository and the changeset can be found here:

ludoza/Chee@af9ef37

If I must create a pull request or clean it up a bit before hand. Let me know, and I will try my best.

Thanks for the library!

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.