Post data over MQTT with Mita
Antwort
24.07.19 19:46

Hello, I would like to know how to send Gyroscope data over MQTT protocol using Mita because in the example only shows how to do it with acceloremeter data, but I don't know which library import for doing it with Gyro and what sintaxys I should use.

Hoping your soon answer, kind regards.

0 (0 Stimmen)
RE: Post data over MQTT with Mita
Antwort
25.07.19 08:09 als Antwort auf Isai Jimenez.

Hello, it works exactly like it works with the accelerometer.

For example I did it like that: 

    var gx = gyroscope.x_axis.read();
    var gy = gyroscope.y_axis.read();
    var gz = gyroscope.z_axis.read();
    mqttbroker.gyroscope.write(`x: ${gx} y: ${gy} z: ${gz} [deg/s]`);

Greetings

+2 (2 Stimmen)
RE: Post data over MQTT with Mita
Antwort
25.07.19 09:01 als Antwort auf Emily Lindner.

Hi

As Emily mentioned you can do like that.

Orelse you can use cltrl+space it will show the suggestions after you use the First letter.

For example for gyro sensor you can type "gyro" and after that press cltrl+space you will get the suggestions .

Hope this helps

Thanks

Priyashi

+1 (1 Stimme)
RE: Post data over MQTT with Mita
Antwort
29.07.19 15:13 als Antwort auf Priyashi Yadav.
Thanks a lot to both of you!! You helped me a lot!! I will  post if this works okay? Just for feedback but thanks for your time and your knowledge!!!
0 (0 Stimmen)
RE: Post data over MQTT with Mita
Antwort
29.07.19 21:56 als Antwort auf Isai Jimenez.
Thanks a lot to both of you, you helped me a lot, I did it just how both of you told me and it worked, I am very thankful!! Have an awesome day!!
+1 (1 Stimme)