Recent

Author Topic: MQTT Client  (Read 10351 times)

cdbc

  • Hero Member
  • *****
  • Posts: 1806
    • http://www.cdbc.dk
Re: MQTT Client
« Reply #15 on: January 16, 2025, 06:08:38 pm »
Hi
So all this MQTT-Circus started with me *not* doing 'LNet', for networking...
In order to come full circle, I /forced/ LNet upon myself and made a plugin for LNet as well  ...I was right, /I really don't like LNet, think it's weird in a roundabout sort of way/, but hey - now it's done and I don't have to touch it again, in a foreseeable future  :D
As always, tested to work against Mosquitto and my own broker...
I think now is the time for me to dive deeper into the MQTT-Abyss and have a 'LookSee'... 8-)
Let me know what you think and don't hesitate to ask questions.
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

cdbc

  • Hero Member
  • *****
  • Posts: 1806
    • http://www.cdbc.dk
Re: MQTT Client
« Reply #16 on: January 17, 2025, 08:54:07 am »
Hi
@Thaddy: Your 'supercomputer' is rambling around in my head  :D
- What do you use it for?
- How do you partition a collective workload?
- I guess, mqtt is used for comms amongst them?
- All the other questions, you can think of, I probably have?!?
Curious as h*ll, is what I am... %)
Please spill...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

Thaddy

  • Hero Member
  • *****
  • Posts: 16516
  • Kallstadt seems a good place to evict Trump to.
Re: MQTT Client
« Reply #17 on: January 17, 2025, 02:03:11 pm »
Depends. currently it is running dummy loads to test some MPC algorithms at the protocol level. When that is stable I will try to implement some MPC tasks from the theory.
I started off with the examples from the Magpi from a few years ago. I built it just out of curiosity with no predefined plans for it. Maybe run some AI models locally.
« Last Edit: January 17, 2025, 02:07:11 pm by Thaddy »
But I am sure they don't want the Trumps back...

cdbc

  • Hero Member
  • *****
  • Posts: 1806
    • http://www.cdbc.dk
Re: MQTT Client
« Reply #18 on: January 17, 2025, 02:36:18 pm »
Hi Thaddy
Cool  8-)
Quite an interesting little project...
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

Thaddy

  • Hero Member
  • *****
  • Posts: 16516
  • Kallstadt seems a good place to evict Trump to.
Re: MQTT Client
« Reply #19 on: January 17, 2025, 04:11:13 pm »
BTW my mqtt code is based on a synapse version, but I am rebasing it to use fcl-net and fcl-web
But I am sure they don't want the Trumps back...

cdbc

  • Hero Member
  • *****
  • Posts: 1806
    • http://www.cdbc.dk
Re: MQTT Client
« Reply #20 on: January 17, 2025, 04:18:20 pm »
Hi Thaddy
I used the /old/(er) fcl-net, because that's what's in 3.2.2, had a look at the newer 'fpsockets' by @Warfley, but I actually don't much like 'Generics'...
I don't think they should be *smeared* allover code, just because you can.
...And the generics libraries pull in a lot of code, that I mostly do not need.
I actually like fcl-net and Synapse the most  ;)
Just my 2 cents worth.
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

Thaddy

  • Hero Member
  • *****
  • Posts: 16516
  • Kallstadt seems a good place to evict Trump to.
Re: MQTT Client
« Reply #21 on: January 17, 2025, 06:10:18 pm »
It is more that I prefer fpc-net and fcl-web since they are actively maintained.
And fcl-net has some of its roots in synapse anyway. But yes, I am mostly on trunk/main and that can differ considerably from 3.2.2/3.2 fixes.
But I am sure they don't want the Trumps back...

dbannon

  • Hero Member
  • *****
  • Posts: 3212
    • tomboy-ng, a rewrite of the classic Tomboy
Re: MQTT Client
« Reply #22 on: January 18, 2025, 12:07:40 am »
I use mqtt for controlling a cluster of rpi's ( 16 x Raspberry Zero 2 W for 64 cores in total , super computing for less than 250 euro)

In early RasPi times, I designed, on paper, a rasberrypi supercomputer as an April Fools Day joke for our newsletter. At the time, I ran the largest supercomputer south of the Tropic of Cancer (clever claim, most big SCs are well north to cheapen cooling).

My machine used tens of thousand RasPis mounted in a modified IBM tape robot, the idea being that reliability of the Pi's (OK in tens to hundreds, poor in the thousands) could be managed by automatically replacing any faulty hardware. It triggered a storm of suggestions about how we could capture a memory image before replacing a Pi so as to avoid disrupting a large MPI job. Some actually sounded (slightly) feasible.

Sadly, some people did not see the joke, triggering a series of complaints that VPAC was wasting money developing a 32bit ARM system  %)

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

Thaddy

  • Hero Member
  • *****
  • Posts: 16516
  • Kallstadt seems a good place to evict Trump to.
Re: MQTT Client
« Reply #23 on: January 18, 2025, 06:41:06 am »
Well, these clusters such as I made exist since the early Raspberry Pi one days, more than 10 years ago. So the April fool's joke did not land for many, because these clusters were not a joke at all but a genuine introduction in MPC (massive parallel compute). Several universities and scientific institutions built RPi clusters for educational purposes. (Cambridge, MIT, Delft to name a few). It is a nice toy to have. The nice thing is that because of mqtt it scales:if you have the odd $250 lying around, build the same contraption, and feel like it, we can add clusters on the go, independent of location. Note power supply is more expensive than the boards. My setup is relatively small, I know of some really silly numbers, at least 5 times mine.
Btw: it is not about the speed, it is about understanding MPC. You would not expect a toy train to reach the same speed as a TGV or Shenzen.
« Last Edit: January 18, 2025, 06:44:54 am by Thaddy »
But I am sure they don't want the Trumps back...

 

TinyPortal © 2005-2018