Commit 47840682 authored by Mohd Bilal's avatar Mohd Bilal
Browse files

removed gnuradio test setup

parent 3f802c25
......@@ -116,23 +116,16 @@ class TIMGSNClient:
user.load_data(user_data)
self.users.append(user)
def _setup_gnuradio(self):
self.g1 = satellite_decoder_test()
def _set_up(self):
logger.info("setting up TIMGSN client...")
self._setup_user()
self._setup_mqtt()
#self._setup_gnuradio()
self._is_setup = True
def _tear_down(self):
for user in self.users:
user.terminate()
self.mqtt.teardown()
#self.g1.stop()
#self.g1.wait()
def stop(self):
self._tear_down()
......@@ -141,7 +134,6 @@ class TIMGSNClient:
def operate(self):
for user in self.users:
user.operate()
#self.g1.start()
def start(self):
self._set_up()
......
......@@ -3,7 +3,7 @@ from utils.threading import ThreadedModule
from utils.helpers import setup_required
from utils.threading import ThreadedModule
from app.client import create_response
#from app.gnuradio.flowgraphs.gsn_receiver import GSN_RX as Receiver
# from app.gnuradio.flowgraphs.gsn_receiver import GSN_RX as Receiver
from timgsn import GSN_RX as Receiver
import concurrent.futures
import threading
......
......@@ -15,12 +15,12 @@ class AWSMQTT(object):
aws.configureEndpoint(config.aws_endpoint, 8883)
aws.configureCredentials(config.aws_root_cert, config.aws_private_key,
config.aws_cert)
aws.connect()
aws.connectAsync()
return aws
def teardown(self):
logger.info("disconnecting from aws client")
self._connection.disconnect()
self._connection.disconnectAsync()
@property
def connection(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment