Notifications
Clear all

MQTT Broker

125 Posts
8 Users
61 Reactions
8,331 Views
Inst-Tech
(@inst-tech)
Member
Joined: 2 years ago
Posts: 554
 

@byron  No worries @byron.. you have have my share...hehehe.. I'll stick to my bourbon..

LouisR


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7105
 

@inst-tech Well you do have something down there they call beer, we call it flavored water. 

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
Inst-Tech reacted
ReplyQuote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2538
 

@zander 

They can't even make decent tea, they keep adding it into too much water 🙂

Anything seems possible when you don't know what you're talking about.


   
Inst-Tech reacted
ReplyQuote
Inq
 Inq
(@inq)
Member
Joined: 2 years ago
Posts: 1900
 

This RaspPi Imager is just killing me.  When I put the SD card in and Windows said it needed formatting.  I canceled out of all that.  Imager started writing and promptly Blue-Screen.  Finally came back and because SD was already in, no prompt and Imager wrote it... during verifying (I think at the end) Blue Screen.  Now computer came back up and "System Interrupts are using 100% CPU... after about ten minutes it went to Disk at 100%... has been that way for about ten minutes.  Tried restart... came back and did same Interrupts 100%, then Disk 100%.  I uninstalled Imager... Didn't help.

NOT A GOOD EXPERIENCE WITH RASPI THIS TIME AROUND!  

3 lines of code = InqPortal = Complete IoT, App, Web Server w/ GUI Admin Client, WiFi Manager, Drag & Drop File Manager, OTA, Performance Metrics, Web Socket Comms, Easy App API, All running on ESP8266...
Even usable on ESP-01S - Quickest Start Guide


   
ReplyQuote
Inst-Tech
(@inst-tech)
Member
Joined: 2 years ago
Posts: 554
 

@will, Down here in the South where I live, (on the Gulf coast) we drink sweet tea, mint Juleps, and bourbon on the rocks, or neat.. Southern gentleman prefer bourbon to tea .. lol

LouisR


   
ReplyQuote
Will
 Will
(@will)
Member
Joined: 3 years ago
Posts: 2538
 

@inst-tech 

I was referring to the Bostonians of Dec 16 1773 🙂 They kind of went overboard 🙂

Anything seems possible when you don't know what you're talking about.


   
Inst-Tech and Ron reacted
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7105
 

@inq Other than the pre-config stuff you can do now, use Balena Etcher just in case RPI imager is really causing that. I used it a few times on my Mac recently with no problems.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7105
 

@inq I hate to tell you this but maybe you accidently tried to image your windows boot drive and now it is toast? Easy way to find out is plug in another boot drive and change the boot order in the bios. One quick peek at the normal drive should tell all.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7105
 
Posted by: @inst-tech

@will, Down here in the South where I live, (on the Gulf coast) we drink sweet tea, mint Juleps, and bourbon on the rocks, or neat.. Southern gentleman prefer bourbon to tea .. lol

So what do you drink then?

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1123
Topic starter  

@inq

As I just put the mosquitto MQTT broker on my new 64bit raspi os I give following sequence (its the same as my first note in effect, but perhaps put more clearly.

1) sudo apt install mosquitto mosquitto-clients

2) Create a new config file using the nano editor as follows

sudo nano /etc/mosquitto/conf.d/bg_mosquitto.conf

and into the nano editor screen put the following

listener 1883

allow_anonymous true

listener 9001

protocol websockets

allow_anonymous true

then close and save the file -

ctrl x -  save the file? - respond - Y  - filename is shown - Press Enter - to accept.

3) Then the running mosquitto service is stopped and restarted to use the config file.

sudo service mosquitto stop

sudo service mosquitto start

Then you can test your broker is working by using the MQTT-fx program as download and installed on your PC or mac (I hope you have). You need to create profile for your broker - really you just need to input the ip address of your rpi, connect to newly created profile, create a subscription to your broker of '#' (subscribe to everything), go to the publish tab - enter a heading (e.g. test/test1) and put something in the payload box (the very large box under the heading) and press publish.  Then see the results in your subscription tab.  You have a working broker 😎 

You need a working rpi first of course so I hope your imager or pc problems are all sorted.  From your description I dont think its the rpi imager, something else seems be at play.  

Next up I'm going to install mariadb, the debian version of the mysql server database.  Let me know if you want the install steps for that.

Good luck.   


   
Lee G reacted
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7105
 

@byron The steps for mariadb wold be good, but why debian, are you not installing on a Pi? Or have I forgot Pi is a child of Debian?

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7105
 

@byron Is it possible to put a publisher of mqtt onto an ESP32?

EDIT, never mind just downloaded and installed it. What I want to do is have my esp32 program send me status messages. Can you point me at an example and also the Mac version of a client? Sorry if you already covered this, my memory is getting worse day by day.

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
ReplyQuote
Inst-Tech
(@inst-tech)
Member
Joined: 2 years ago
Posts: 554
 

@zander I thought I'd made that very clear in my previous post.. I'm a bourbon man..I also enjoy Southern Comfort, and Apple cider beer on occasion.

regards,

LouisR 

LouisR


   
frogandtoad reacted
ReplyQuote
Ron
 Ron
(@zander)
Father of a miniature Wookie
Joined: 3 years ago
Posts: 7105
 

@inst-tech I never developed a taste for Bourbon, or Southern Comfort, heck, I am a Scot descendant and HATE the taste of Scotch. I drink mostly wine, and a little light beer (my Canadian friends would be appalled to hear that)

First computer 1959. Retired from my own computer company 2004.
Hardware - Expert in 1401, and 360, fairly knowledge in PC plus numerous MPU's and MCU's
Major Languages - Machine language, 360 Macro Assembler, Intel Assembler, PL/I and PL1, Pascal, Basic, C plus numerous job control and scripting languages.
My personal scorecard is now 1 PC hardware fix (circa 1982), 1 open source fix (at age 82), and 2 zero day bugs in a major OS.


   
Inst-Tech reacted
ReplyQuote
byron
(@byron)
No Title
Joined: 5 years ago
Posts: 1123
Topic starter  
Posted by: @zander

Or have I forgot Pi is a child of Debian

You have forgot.  Rpi os is based on Debian.


   
Ron reacted
ReplyQuote
Page 6 / 9