Skip to content

Commit 16bccfa

Browse files
committed
combined several files, removed api imports in broker.py
1 parent 28a444f commit 16bccfa

File tree

6 files changed

+85
-740
lines changed

6 files changed

+85
-740
lines changed

fbapi.py api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import json
44
import requests
55

6-
class FarmbotAPI():
6+
class ApiFunctions():
77
def __init__(self):
88
self.token = None
99
self.error = None

fbbro.py broker.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
from fbapi import FarmbotAPI
21
from datetime import datetime
32
import paho.mqtt.client as mqtt
43

54
import json
65

7-
class BrokerConnect():
6+
class BrokerFunctions():
87
def __init__(self):
9-
self.api = FarmbotAPI()
10-
11-
self.token = self.api.token
128
self.client = None
139

1410
# connect() --> establish connection to message broker

0 commit comments

Comments
 (0)