Страница 1 из 1

MQTT Device read data

СообщениеДобавлено: Пн мар 05, 2018 11:57 am
ebasak_tr/gmail_com
Hello all,

I want to create a new model for a mqtt device. I can create a connectşon to the device and count of message from mqtt server. But I can not read the data from the device. I can publish the data from mqtt server like this ; from linux server , mosquitto_pub -h xxx.xxx.xxx.xxx -p 1883 -t temp -m "32" .
I want to see the data in my aggregate test server. What should i do this ? Orderly ;
1) Created a new device (mqtt)
2) Create a new model (asking this)
3) Create a new widget (content data table) true?

Please help me.

Re: MQTT Device read data

СообщениеДобавлено: Ср мар 14, 2018 11:56 am
sergey_eritsyan/tibbo_com
Hello!
I already answered you in the same Topic theme -

1) Type in the Topic setting "#"
2) Create a model and add a writable variable
3) Then add a binding, in the target - model variable, as activator - MQTT message, for example, "users.admin.devices.mqtt:message@"
4) In the expression write {env/value} and check "On event" checkbox

After that, open model's additional properties and generate MQTT message. In the additional properties, you will see a table with a message.