Skip to content

Commit d77e588

Browse files
author
brentru
committed
black precommit
1 parent e3d662f commit d77e588

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/esp32spi/minimqtt_certificate_esp32spi.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,23 +67,28 @@ def connect(client, userdata, flags, rc):
6767
print("Connected to MQTT Broker!")
6868
print("Flags: {0}\n RC: {1}".format(flags, rc))
6969

70+
7071
def disconnect(client, userdata, rc):
7172
# This method is called when the client disconnects
7273
# from the broker.
7374
print("Disconnected from MQTT Broker!")
7475

76+
7577
def subscribe(client, userdata, topic, granted_qos):
7678
# This method is called when the client subscribes to a new feed.
7779
print("Subscribed to {0} with QOS level {1}".format(topic, granted_qos))
7880

81+
7982
def unsubscribe(client, userdata, topic, pid):
8083
# This method is called when the client unsubscribes from a feed.
8184
print("Unsubscribed from {0} with PID {1}".format(topic, pid))
8285

86+
8387
def publish(client, userdata, topic, pid):
8488
# This method is called when the client publishes data to a feed.
8589
print("Published to {0} with PID {1}".format(topic, pid))
8690

91+
8792
# Get certificate and private key from a certificates.py file
8893
try:
8994
from certificates import DEVICE_CERT, DEVICE_KEY

0 commit comments

Comments
 (0)