Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

MQTT test on Orange Pi Lite

Featured Replies

Can anyone please share the information about implementing MQTT on Orange Pi Lite ? any guide or link would be helpful

I use mosquitto as a MQTT broker on my opi+2e and it works well. It can be installed from standard repo, just do:

sudo apt-get update
sudo apt-get install mosquitto

Before you can publish or subscribe to any topic, you have to install some clients:

apt-get install mosquitto-clients

Then you can send data (publish) to the broker on a topic, and/or get them (subscribe):

# publish 32.5 value to topic sensor/temperature on localhost
mosquitto_pub -h localhost -t sensor/temperature -m 32.5

# subscribe to topic sensor/temperature on localhost: it waits until ctrl+c for any publish values
mosquitto_sub -h localhost -t "sensor/temperature"

To test your local broker, you have to write the subscribe command in a terminal and the publish one in another and you can repeat the publish one with different values. You should see the values appearing in the subscribe terminal.

 

You can also use node-red to manipulate MQTT message with other protocols or sources or targets for your data. You'll find easily some tutorials on the internet.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.