MQTT Broker Without internet [closed] - mqtt

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 months ago.
Improve this question
How can I use a broker of MQTT like mosquitto, for example, without internet?
I've downloaded mosquitto, but I really don't know how to use it in my code.
I'm programming in python, so an answer in python is better for me to understand and use in my project.

We can't really answer your question without knowing what you intend to actually do with MQTT.
What I will say is the following:
A MQTT broker doesn't require "The Internet". They will (normally) require a TCP/IP network, but this can be as simple as just a TCP/IP stack on a single machine.
The broker runs on it's own, you do not (again usually) embed the broker into your application, it is used so multiple applications can pass messages to each other.
For working with any MQTT broker in Python there is the Paho Python library. It's documentation includes examples to get you started.
I suggest you start the broker and then write a couple of test Python applications (one to subscribe to a topic and one to publish to that topic) to get a feel for how things work and if you get stuck you can ask a new question about a specific problem (explaining what you tried, what you expected it to do and how it didn't work).

Related

Remove docker dependency [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed yesterday.
Improve this question
One of web tools we intend to use requires docker for installation. Due to limitation in resources, however, the only way for us to deploy this tool is on a shared university php webserver with an associated MySQL database. My question is, can you somehow convert or even "compile" this docker-dependent tool to get some simple package, similar, for instance, to Wordpress? Indeed, as per my understanding, Wordpress development does require docker, while the final package for Wordpress installation does not.
Is this operation of docker-removal possible and is there a standardised workflow? The tool in question is located in the following repository.
I have tried to install the tool as is, being blocked by the lack of admin privileges and the absence of docker on the described university webserver. I have experience in setting up Wordpress, I would expect for my tool of interest to have a more sophisticated installation process (compared to the current 3 steps) without docker and, for instance, to also require manual connection to an SQL-database.
Please excuse me for my limited understanding and layman terms, I am sadly not coming from a computer science background.

How to display most used ports when analyzing packets in Wireshark? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 10 months ago.
Improve this question
I've collected an array of packets on Wireshark and i'm wondering how do I filter that properly to see the most used ports / protocols?
I'd assume it'd be within "Analyze" "Filters" and then you'd have to create a specific one if this is the way of doing it, although I am unsure of how to properly express that in code.
I'd assume I dont need to provide any images of data for this query but if I should, please let me know
Any ideas?
How can I find out the traffic flow rates of my packets in Wireshark?
you can go to "statistics" then "ipv4" or "ipv6" depending of your network, then "destinations and ports".
It will give you the most used port and protocol.
Then you can just apply a filter by entering something like tcp.port == the_port in the searchbar (you have to replace tcp by the most used protocol and the_port by the port that you want to filter).
concerning the flow rate, you can find it with the flow graph. (again in statistics menu).
Have a nice day
JC

UDP Not working sometimes [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Hello currently im using UDP Messages to communicate my program (Made with Delphi Using IdUDPClient and IdUDPServer) on diferent computers in LAN, but yesterday i had a strange issue, one of the computers was unable to receive messages neither could other computers read his messages, All of the programs use the same UDP Port.
The only solution that worked was Restarting the router, but maybe there is an explication on why that happened?
Thank you.
I guess thats just how UDP works :) Quote from wikipedia:
UDP uses a simple transmission model with a minimum of protocol mechanism. It has no handshaking dialogues, and thus exposes any unreliability of the underlying network protocol to the user's program. As this is normally IP over unreliable media, there is no guarantee of delivery, ordering or duplicate protection.

Listening to serial port on Delphi 7 [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am trying to write a program which will listen to the serial input from Arduino board connected via usb, and sending output to serial port (COM4). But I don't know how to get input from serial port in Delphi. I need program to listen to the port, and whenever the input comes, it should react to it. Any suggestions?
http://sourceforge.net/projects/tpapro/ is a freeware tool we've used with great success for many years.
The already suggested tpapro will probably also do it, but I myself use TComport, which I consider slightly easier to use. It will has an event property onrxchar that triggers whenever a character arrives (and several options for other kinds of packets, including ASCII linediscipline).
I use it pretty much for the same kind of stuff, albeit with microchips mcus.
I've used the Comport library of WinSoft for many... years. It´s excellent (0 bugs) and works with any version of windows.
The link is: http://www.winsoft.sk/comport.htm

What are the ways to send a data from one website to other website? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I know only webservices,webrequest&webresponse,sockets are the ways to send/receive data.
can someone one please list out the various ways to send the information from one website to other website, and their pros&cons?
Which one is best under which situation?
Well the question is a bit vague but I will go ahead and get something started:
Web services(soap, rest) - soap is secure but very verbose. rest is lightweight but lacks the security that soap offers. Though you can still encrypt using https
tcp sockets- guaranteed delivery, bigger payload than udp, cumbersome to setup for web based solutions
udp sockets- lighter payload, non guaranteed delivery, ability to broadcast to all ports listening but most routers don't like this
web request/response - pretty straightforward
But as for which one to use we really can't answer that without some context for the question. What are you trying to communicate? How many clients are we communicating to? Will this be initiated or do you need to notify?
All protocols and techniques involving HTTP based data exchange.
Another intersting way would be to share the data on network-drives. Two web-applications can exchange data over a networ-drive from their back-end coding that does not involve HTTP at all.

Resources