MQTT

The place to share and discuss your Ultibo projects.
pjde
Posts: 441
Joined: Tue Feb 09, 2016 6:21 am
Location: Sydney, Australia

MQTT

Postby pjde » Fri Mar 02, 2018 3:40 am

Initial MQTT components for Ultibo now on github https://github.com/pjde/ultibo-mqtt

Regards

Paul
Gavinmc42
Posts: 1560
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: MQTT

Postby Gavinmc42 » Fri Mar 16, 2018 7:05 am

Hi Paul,
Been doing a crash course on MQTT.
What is this code for?
Got it going but no clue on how to use it.

At the moment I want to use it only locally on 10.x.x.x networks.
No real interest of going to the cloud yet or ever at this time.
Publisher, Broker, Client/Subscriber, learned all this from HiveMQ :oops:

A sensor is a Publisher and the gateway is the Broker, so to look at the data I would need a Client app on a PC/Tablet/Phone?
What apps can be used, tried a bunch and still clueless :(
The Broker is the missing bit?
Could a Broker be done in Ultibo running in QEMU?

Do I need to use the Delphi-mqtt demo?
Do you have a Laz/FPC version?
pjde
Posts: 441
Joined: Tue Feb 09, 2016 6:21 am
Location: Sydney, Australia

Re: MQTT

Postby pjde » Fri Mar 16, 2018 8:32 pm

MQTT is a publish / subscription message brokering system.

In other words, you can have various clients talking to a broker each having subscribed to various "topics". When any client publishes a message on a topic, all other clients who have subscribed to that topic will receive the message.

There are also different methods of quality of service to ensure that messages are received.

You can use the Delphi example to talk between it and the PI. If you need it and can't compile the Delpi App, let ne know and I will post a compiled version of GitHub.

Regards

Paul
Gavinmc42
Posts: 1560
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: MQTT

Postby Gavinmc42 » Sat Mar 17, 2018 12:43 am

Don't have Delphi, but now have Laz/FPC on most of my boxes.
No idea how to port Delphi code :oops:
Linux for home, Windows7 for work box

The goal will be to subscribe with tablet/smart phone etc.
Currently I use Pi based networked webservers, so mostly HTML/JS with some CGI.
Not sure if MQTT will do what i want because I have alarm thresholds on the Pi based sensors that send emails /sms.

Just testing MQTT to understand what it can do.
pjde
Posts: 441
Joined: Tue Feb 09, 2016 6:21 am
Location: Sydney, Australia

Re: MQTT

Postby pjde » Sat Mar 17, 2018 8:57 pm

Hi Gavin

Just posted exe of Delphi demo program.

This is what I used to test the PI

Regards

Paul
Gavinmc42
Posts: 1560
Joined: Sun Jun 05, 2016 12:38 pm
Location: Brisbane, Australia

Re: MQTT

Postby Gavinmc42 » Sun Mar 18, 2018 12:59 am

Thanks Paul,
Er exactly what are you using Ultibo for?
Coolant Leak.
Primary Cooling System.
Reactor 5.
:lol:

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 1 guest