Post data over MQTT with Mita
Risposta
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 Voti)
RE: Post data over MQTT with Mita
Risposta
25/07/19 8.09 come risposta a 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 Voti)
RE: Post data over MQTT with Mita
Risposta
25/07/19 9.01 come risposta a 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 Voto)
RE: Post data over MQTT with Mita
Risposta
29/07/19 15.13 come risposta a 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 Voti)
RE: Post data over MQTT with Mita
Risposta
29/07/19 21.56 come risposta a 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 Voto)