Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
INDIVIDUAL_MQTT/main.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
24 lines (14 sloc)
596 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a sample Python script. | |
import mqtt | |
# Press ⌃R to execute it or replace it with your code. | |
# Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings. | |
def print_hi(name): | |
# Use a breakpoint in the code line below to debug your script. | |
print(f'Hi, {name}') # Press ⌘F8 to toggle the breakpoint. | |
# Press the green button in the gutter to run the script. | |
if __name__ == '__main__': | |
print_hi('PyCharm') | |
# See PyCharm help at https://www.jetbrains.com/help/pycharm/ | |
import paho.mqtt.client as paho | |
client = paho.Client | |
client | |