Functions | Variables
mqtt_test Namespace Reference

Functions

def on_connect (client, userdata, flags, rc)
 

Variables

 client = mqtt.Client()
 
dictionary data
 
 on_connect
 
 ret = client.publish("plotjuggler/stuff", json.dumps(data), qos=0 )
 
float time = 0.0
 

Function Documentation

◆ on_connect()

def mqtt_test.on_connect (   client,
  userdata,
  flags,
  rc 
)

Definition at line 7 of file mqtt_test.py.

Variable Documentation

◆ client

mqtt_test.client = mqtt.Client()

Definition at line 10 of file mqtt_test.py.

◆ data

dictionary mqtt_test.data
Initial value:
1 = {
2  "timestamp": time,
3  "test_data": {
4  "cos": math.cos(time),
5  "sin": math.sin(time)
6  }
7  }

Definition at line 22 of file mqtt_test.py.

◆ on_connect

mqtt_test.on_connect

Definition at line 11 of file mqtt_test.py.

◆ ret

mqtt_test.ret = client.publish("plotjuggler/stuff", json.dumps(data), qos=0 )

Definition at line 30 of file mqtt_test.py.

◆ time

float mqtt_test.time = 0.0

Definition at line 17 of file mqtt_test.py.



plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:52