STBLESensor_Android icon indicating copy to clipboard operation
STBLESensor_Android copied to clipboard

Publisher topic name

Open Mirnaghi opened this issue 4 years ago • 2 comments

I try to connect sensor to laptop with generic mqtt but i cannot figure out exactly what is publisher topic

Mirnaghi avatar Jun 03 '21 07:06 Mirnaghi

Ciao Mirnaghi, [image: image.png]

When you connect to one mqtt broker you decide the Device name that you want to use (in my example luca) then you could select what you want to send, in my example pressure and humidity and you will send one message for each Feature to the following topic (always on my example):

2021-06-04 14:54:47.767 3411-3666/com.st.bluems.debug I/Publish: topic: luca/humidity/humidity 2021-06-04 14:54:47.767 3411-3666/com.st.bluems.debug I/Publish: msg: 38.5 2021-06-04 14:54:47.767 3411-3576/com.st.bluems.debug I/Publish: topic: luca/pressure/pressure 2021-06-04 14:54:47.767 3411-3576/com.st.bluems.debug I/Publish: msg: 1001.69

so: DeviceId/Feature/Feature

Ciao Luca

Il giorno gio 3 giu 2021 alle ore 09:27 Mirnaghi Aghazada < @.***> ha scritto:

I try to connect sensor to laptop with generic mqtt but i cannot figure out exactly what is publisher topic

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/STMicroelectronics/STBlueMS_Android/issues/13, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEMVJZUIBRTZ25XUAE23YWTTQ4VGVANCNFSM46AFWOZQ .

-- Luca Pezzoni

PezzoniL avatar Jun 04 '21 12:06 PezzoniL

Thank you so much, and I figured out the topic with subscribing to patterns such as /+/+/+ in mosquitto.

On Jun 4, 2021 at 4:59 PM, Luca Pezzoni @.***> wrote:

Ciao Mirnaghi, [image: image.png]

When you connect to one mqtt broker you decide the Device name that you want to use (in my example luca) then you could select what you want to send, in my example pressure and humidity and you will send one message for each Feature to the following topic (always on my example):

2021-06-04 14:54:47.767 3411-3666/com.st.bluems.debug I/Publish: topic: luca/humidity/humidity 2021-06-04 14:54:47.767 3411-3666/com.st.bluems.debug I/Publish: msg: 38.5 2021-06-04 14:54:47.767 3411-3576/com.st.bluems.debug I/Publish: topic: luca/pressure/pressure 2021-06-04 14:54:47.767 3411-3576/com.st.bluems.debug I/Publish: msg: 1001.69

so: DeviceId/Feature/Feature

Ciao Luca

Il giorno gio 3 giu 2021 alle ore 09:27 Mirnaghi Aghazada < @.***> ha scritto:

I try to connect sensor to laptop with generic mqtt but i cannot figure out exactly what is publisher topic

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/STMicroelectronics/STBlueMS_Android/issues/13, or unsubscribe < https://github.com/notifications/unsubscribe-auth/AEMVJZUIBRTZ25XUAE23YWTTQ4VGVANCNFSM46AFWOZQ

.

-- Luca Pezzoni

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/STMicroelectronics/STBlueMS_Android/issues/13#issuecomment-854705774, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALFOSMOCUHTHKPAZ472JFYTTRDE2HANCNFSM46AFWOZQ .

Mirnaghi avatar Jun 13 '21 15:06 Mirnaghi