I am trying to build a realtime mqtt applicationthat sends data from mobile devices to a backend that handles that data. How can I best implement an identification in these mqtt streams? I mean, how can I know what data is from which device/user? Should I make multiple streams or should I put a variable in the stream that identifies the user?
Related Questions in AUTHENTICATION
- Authenticate Flask rest API
- Sends a personalised error message from the back-end to the front-end with Nuxt-auth
- How to connect Spotify PKCE Authorization Boilerplate to Login-Button in React
- Laravel SPA auth with Sanctum
- _supabaseClient__WEBPACK_IMPORTED_MODULE_1__.supabase.auth.signIn is not a function
- My openID Authentication return 'You must have either https wrappers or curl enabled.'
- How to detect the Minimization of Custom Chrome Tabs on Android?
- Wordpress redirect to homepage after successfully logged in
- How to modify the prebuilt UI of authentication in aws amplify version 6 in React Native
- Creating a login system for my website, navlist not working?
- Receiving 400 bad request on post when customer auth handler is used
- Creating Azure B2B login system with Vue.js frontend & Python Django backend
- Gradio chatbot: how to export individual conversation histories?
- Set-Cookie header not forwarded by nginx to the client
- git asking for authentication when auth.json is present while running composer update
Related Questions in MQTT
- How do I publish sensor data to EMQX broker on Ubuntu from a remote Arduino (no WiFi) interfaced with SIM800L?
- What are the implications of Flask-MQTT statement, "Flask-MQTT is currently not suitable for the use with multiple worker instances?"
- How can I add a suffix to an MQTT topic
- ESP8266 - Unable to connect to MQTT Server via SSL (mutual authentication)
- paho mqtt java cannot reconnect after a long time machine sleep
- Frequent message loss with MQTT
- Block MQTT port from windows firewall
- HMI - JMobile Log while connecting with EMQX server
- Sending large files over MQTT / mosquitto - limit at 4MB
- QoS2 messages are not deleted when the limit is reached
- What makes MQTT a raw tcp connection that we can't run it in the browser?
- RabbitMQ - consume messages from a classic queue to a MQTT connection
- Tsung MQTT Loadtest not working with SSL, finding possible way to disable ssl verification during load test
- How to get my data to actually show up in the DynamoDB?
- Unable change Transport type to MQTT in thingsboard device profile
Related Questions in REAL-TIME-DATA
- The frontend is not updating when there is an update in backend. For real time updates I am using Websockets
- How to implement realtime tflite model in Android Studio?
- Matlab Real-Time Audio Simulation Speaker Output, Annoying Clicking Issue
- Real-time data doesn't update on Windows web server [Python, PHP, JS, Apache]
- Reducing ILP Ingestion Delay in QuestDB
- How can I test end to end latency in Databricks Structured Streaming?
- how to get data real time with feathersJS, SocketIO
- How to connect to the microsoft band with band sdk without the microsoft health app on my android to get real time data
- Efficiently Handling Full Queues in Python for Real-Time Frame Processing
- Google Analytics 4 Not Updating User Count in Real-Time for Chrome Extension Events
- Best technique to crop a real-time plot to the chart time interval with D3.js and Angular
- How can I access real-time health data from Zepp OS (Xiaomi/Amazfit)? Do I need any permission for this? Need some working samples
- GridDB IoT Application - Real-time data storage and retrieval challenges, need guidance
- Power BI/MS Fabric - One Hybrid table with multiple sources - KQL & BigQuery
- How do I handle real-time sensory data from a server in my Unity client?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
From what you are describing I would recommend to use a single topic for each mobile device.
When you do so, it is easy to get all data with a subscribe to devices/+/data. You can also use devices/+ directly if your client is only publishing data and you are not interested in other stuff. In you webbrowser or broker (see my answer to your other question) you get the message and you can determine with the topic, which client sent the message.
Another step to make the scenario more secure would be to allow device1 only to publish to devices/device1/#. This can be implemented through a plugin in the MQTT broker. An example for how easy it can be to implement such a plugin is shown here for the HiveMQ broker.
Hope this helps, Chris